/* ==========================================================================
   in2pharma, an IQVIA business — custom theme on top of Bootstrap 5.3
   Colour tones taken from the in2pharma logo and the live in2pharma.com site.
   ========================================================================== */

:root {
  --i2p-navy: #140b42;        /* deep navy used across the live site        */
  --i2p-navy-2: #1d1258;
  --i2p-blue: #014db7;        /* primary action blue                        */
  --i2p-blue-dark: #013d92;
  --i2p-logo-blue: #689ac5;   /* the blue of the "2" in the logo            */
  --i2p-logo-blue-soft: #a8c6de;
  --i2p-grey: #4d4d4d;        /* the grey of the logo wordmark              */
  --i2p-ink: #333333;
  --i2p-muted: #666666;
  --i2p-bg: #f4f7fa;
  --i2p-line: #e2e8f0;
}

html { scroll-behavior: smooth; }

body {
  color: var(--i2p-ink);
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  color: var(--i2p-navy);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: var(--i2p-blue); }
a:hover { color: var(--i2p-blue-dark); }

/* Skip link ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: .75rem 1.25rem;
  background: var(--i2p-navy);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* Navigation --------------------------------------------------------------- */
.navbar-brand img { height: 46px; width: auto; }
.nav-link { font-weight: 600; color: var(--i2p-grey); }
.nav-link:hover,
.nav-link:focus,
.nav-link.active { color: var(--i2p-blue); }
.dropdown-item.active,
.dropdown-item:active { background-color: var(--i2p-blue); }

/* Buttons ------------------------------------------------------------------ */
.btn-primary {
  --bs-btn-bg: var(--i2p-blue);
  --bs-btn-border-color: var(--i2p-blue);
  --bs-btn-hover-bg: var(--i2p-blue-dark);
  --bs-btn-hover-border-color: var(--i2p-blue-dark);
  --bs-btn-active-bg: var(--i2p-blue-dark);
  --bs-btn-active-border-color: var(--i2p-blue-dark);
}
.btn-outline-primary {
  --bs-btn-color: var(--i2p-blue);
  --bs-btn-border-color: var(--i2p-blue);
  --bs-btn-hover-bg: var(--i2p-blue);
  --bs-btn-hover-border-color: var(--i2p-blue);
}
.btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .6);
  --bs-btn-hover-bg: rgba(255, 255, 255, .14);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: #fff;
}
.btn-light { --bs-btn-color: var(--i2p-navy); }

/* Hero --------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 5rem;
  color: #fff;
  background-color: var(--i2p-navy);
  /* 70% navy overlay on top of the hero image for legibility.
     JPG only: the static.work.iqvia.com server does not serve .webp files (404). */
  background-image:
    linear-gradient(rgba(20, 11, 66, .70), rgba(20, 11, 66, .70)),
    url("../assets/hero-background.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.hero-section h1,
.hero-section .lead { text-shadow: 0 2px 12px rgba(20, 11, 66, .55); }
.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--i2p-logo-blue);
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1,
.hero-section h2,
.hero-section h3 { color: #fff; }
.hero-section .lead,
.hero-section p { color: rgba(255, 255, 255, .8); }

.hero-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.25rem;
  backdrop-filter: blur(4px);
}
.hero-card p { color: rgba(255, 255, 255, .82); }

/* Page header (interior pages) --------------------------------------------- */
.page-header {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 3.5rem;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(104, 154, 197, .4) 0%, rgba(104, 154, 197, 0) 55%),
    linear-gradient(115deg, var(--i2p-navy) 0%, var(--i2p-navy-2) 60%, #1b3f7d 100%);
}
.page-header::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--i2p-logo-blue);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; }
.page-header p { color: rgba(255, 255, 255, .8); }

/* Kickers ------------------------------------------------------------------ */
.eyebrow,
.section-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--i2p-blue);
}
.eyebrow.light,
.section-kicker.light { color: var(--i2p-logo-blue-soft); }

/* Cards -------------------------------------------------------------------- */
.service-card,
.approach-card,
.value-card,
.news-card,
.contact-card,
.info-panel {
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid var(--i2p-line);
  box-shadow: 0 1rem 2.5rem rgba(20, 11, 66, .06);
}

.service-card,
.approach-card,
.value-card,
.news-card { padding: 2rem; height: 100%; position: relative; }
.contact-card,
.info-panel { padding: 2rem; }

.service-card,
.approach-card,
.news-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover,
.approach-card:hover,
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.5rem 3.5rem rgba(20, 11, 66, .13);
  border-color: rgba(104, 154, 197, .6);
}

.service-card .card-cta,
.news-card .card-cta {
  color: var(--i2p-blue);
  font-weight: 700;
  text-decoration: none;
}
.service-card .card-cta:hover,
.news-card .card-cta:hover { text-decoration: underline; }

/* Icons -------------------------------------------------------------------- */
.icon-circle,
.icon-circle-sm {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--i2p-blue) 0%, var(--i2p-logo-blue) 100%);
}
.icon-circle { width: 3.5rem; height: 3.5rem; font-size: 1.05rem; }
.icon-circle-sm { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; font-size: .9rem; }

/* Bands -------------------------------------------------------------------- */
.band-soft { background: var(--i2p-bg); }

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--i2p-navy) 0%, #1b3f7d 100%);
}
.cta-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 6px;
  background: var(--i2p-logo-blue);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }

/* Lists -------------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list > li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .85rem;
}
.check-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--i2p-logo-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M6.2 11.6 2.9 8.3l1.1-1.1 2.2 2.2 5.7-5.7 1.1 1.1z'/%3E%3C/svg%3E") center / .8rem .8rem no-repeat;
}
.check-list ul {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: .6rem;
}
.check-list ul > li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: .5rem;
  color: var(--i2p-muted);
}
.check-list ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6rem;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--i2p-logo-blue);
}

.mini-card {
  background: var(--i2p-bg);
  border: 1px solid var(--i2p-line);
  border-left: 3px solid var(--i2p-logo-blue);
  border-radius: .5rem;
  padding: 1rem;
  font-weight: 700;
  color: var(--i2p-navy);
  height: 100%;
}

/* Quotes ------------------------------------------------------------------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--i2p-line);
  border-top: 4px solid var(--i2p-logo-blue);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 1rem 2.5rem rgba(20, 11, 66, .06);
}
.quote-card blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.quote-card figcaption { color: var(--i2p-muted); font-size: .9rem; font-weight: 700; }

/* News --------------------------------------------------------------------- */
.news-card .news-date {
  color: var(--i2p-muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.news-card h3 { font-size: 1.15rem; }

/* Forms -------------------------------------------------------------------- */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--i2p-logo-blue);
  box-shadow: 0 0 0 .25rem rgba(104, 154, 197, .3);
}
.form-check-input:checked {
  background-color: var(--i2p-blue);
  border-color: var(--i2p-blue);
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
  background: var(--i2p-navy);
  color: rgba(255, 255, 255, .72);
}
.site-footer h2,
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus { color: #fff; text-decoration: underline; }
.site-footer .footer-logo { height: 44px; width: auto; background: #fff; padding: .4rem .6rem; border-radius: .4rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .875rem;
}
.footer-inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Accessibility ------------------------------------------------------------ */
:focus-visible { outline: 3px solid var(--i2p-logo-blue); outline-offset: 2px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .navbar-nav .btn { display: inline-block; width: auto; }
}
@media (max-width: 767.98px) {
  .hero-section { padding: 4rem 0 3rem; }
  .page-header { padding: 3.5rem 0 2.5rem; }
  .display-4 { font-size: 2.4rem; }
  .display-5 { font-size: 2.1rem; }
  .display-6 { font-size: 1.75rem; }
}

/* Footer offices ----------------------------------------------------------- */
.site-footer .footer-office { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem; color: #fff; }

/* Job postings ------------------------------------------------------------- */
.job-card {
  background: #fff;
  border: 1px solid rgba(20, 11, 66, .08);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1rem 2.5rem rgba(20, 11, 66, .06);
}
.job-meta { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.job-meta li {
  background: var(--i2p-bg);
  color: var(--i2p-navy);
  border-radius: 2rem;
  padding: .25rem .8rem;
  font-size: .85rem;
  font-weight: 600;
}

/* Password-protected page -------------------------------------------------- */
.gate-card { max-width: 30rem; margin: 0 auto; }
