/*
 * Purle Consulting Solutions Ltd
 * Site-specific additions to the Moderna v4.8.0 Bootstrap 5 theme.
 */

:root {
  --purle-blue: #11437d;
  --purle-blue-dark: #0a2b50;
  --purle-blue-soft: #e9f2f9;
  --purle-ink: #243444;
  --purle-muted: #667788;
  --purle-accent: #68a4c4;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--purle-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-primary {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: var(--purle-blue);
}

a:hover,
a:focus {
  color: #1d6cab;
}

.skip-link {
  background: #fff;
  color: var(--purle-blue-dark);
  left: 1rem;
  padding: 0.65rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100000;
}

.skip-link:focus {
  top: 1rem;
}

#header,
#header.header-scrolled {
  background: rgba(10, 43, 80, 0.97);
  height: 80px;
}

#header.header-scrolled {
  box-shadow: 0 8px 24px rgba(10, 43, 80, 0.18);
}

#header .logo h1 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: none;
}

#header .logo .brand-subtitle {
  color: #a8d5ed;
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.navbar a,
.navbar a:focus {
  font-size: 0.94rem;
  font-weight: 600;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: #bfe3f6;
}

.mobile-nav-toggle {
  background: transparent;
  border: 0;
  padding: 0;
}

#main {
  margin-top: 80px;
}

#hero {
  height: 72vh;
  min-height: 560px;
  position: relative;
}

#hero::before,
#hero::after {
  content: none;
}

#hero,
#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
  width: 100%;
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
  height: 100%;
}

#hero .hero-slide {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#hero .hero-slide::before {
  background: linear-gradient(100deg, rgba(5, 25, 48, 0.9) 5%, rgba(10, 43, 80, 0.7) 55%, rgba(10, 43, 80, 0.42));
  content: "";
  inset: 0;
  position: absolute;
}

#hero .hero-slide-one {
  background-image: url("../img/regulatory-solutions.jpg");
}

#hero .hero-slide-two {
  background-image: url("../img/red-tape.jpg");
}

#hero .hero-slide-three {
  background-image: url("../img/compliance-support.jpg");
}

#hero .carousel-container {
  align-items: flex-start;
  height: 100%;
  justify-content: center;
  left: auto;
  margin: 0 auto;
  max-width: 1320px;
  padding: 100px 8% 30px;
  position: relative;
  right: auto;
  text-align: left;
  top: auto;
  z-index: 2;
}

#hero h2 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 820px;
}

#hero p {
  color: #f4f8fb;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0 0 2rem;
  max-width: 720px;
  width: auto;
}

#hero .btn-get-started,
.btn-purle {
  background: var(--purle-accent);
  border: 2px solid var(--purle-accent);
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.5rem;
  text-transform: uppercase;
}

#hero .btn-get-started:hover,
.btn-purle:hover {
  background: #fff;
  border-color: #fff;
  color: var(--purle-blue-dark);
}

.btn-purle-dark {
  background: var(--purle-blue);
  border-color: var(--purle-blue);
}

.btn-purle-dark:hover {
  background: var(--purle-blue-dark);
  border-color: var(--purle-blue-dark);
  color: #fff;
}

#hero .carousel-control-prev,
#hero .carousel-control-next {
  z-index: 3;
}

#hero .carousel-control-prev i,
#hero .carousel-control-next i {
  color: #fff;
  font-size: 2.5rem;
}

.section-title {
  padding-bottom: 2rem;
}

.section-title h2 {
  color: var(--purle-blue-dark);
  font-weight: 650;
}

.section-title h2::after {
  background: var(--purle-accent);
}

.intro-band {
  background: var(--purle-blue-soft);
  padding: 4rem 0;
}

.intro-band .eyebrow,
.page-hero .eyebrow {
  color: #337ba4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-band h2 {
  color: var(--purle-blue-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 650;
}

.services .icon-box {
  border: 1px solid #dfeaf0;
  border-radius: 6px;
  height: 100%;
  margin: 0;
  text-align: left;
}

.services .icon {
  margin-left: 0;
}

.services .description {
  color: var(--purle-muted);
}

.services .service-link {
  display: inline-flex;
  font-weight: 700;
  margin-top: 1.25rem;
}

.service-grid > div {
  margin-bottom: 1.5rem;
}

.page-hero {
  background: linear-gradient(110deg, var(--purle-blue-dark), var(--purle-blue));
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 650;
}

.page-hero p {
  color: #dcecf5;
  font-size: 1.15rem;
  max-width: 760px;
}

.breadcrumbs {
  background: #f3f8fa;
  border-bottom: 1px solid #dfeaf0;
}

.breadcrumbs a {
  font-weight: 600;
}

.profile-photo {
  border: 8px solid #fff;
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(10, 43, 80, 0.16);
  height: 220px;
  object-fit: cover;
  width: 220px;
}

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

.credential-list li,
.check-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.8rem;
  position: relative;
}

.credential-list li::before,
.check-list li::before {
  color: var(--purle-accent);
  content: "\f26e";
  font-family: "bootstrap-icons";
  left: 0;
  position: absolute;
}

.content-card {
  background: #fff;
  border: 1px solid #dfeaf0;
  border-top: 4px solid var(--purle-accent);
  border-radius: 4px;
  box-shadow: 0 8px 26px rgba(10, 43, 80, 0.08);
  height: 100%;
  padding: 2rem;
}

.content-card h2,
.content-card h3 {
  color: var(--purle-blue-dark);
}

.service-section {
  border-bottom: 1px solid #dfeaf0;
  padding: 4rem 0;
}

.service-section:last-child {
  border-bottom: 0;
}

.service-icon {
  align-items: center;
  background: var(--purle-blue-soft);
  border-radius: 50%;
  color: var(--purle-blue);
  display: inline-flex;
  font-size: 2rem;
  height: 4rem;
  justify-content: center;
  width: 4rem;
}

.contact .info-box {
  border: 1px solid #dfeaf0;
  box-shadow: 0 8px 26px rgba(10, 43, 80, 0.08);
  height: 100%;
}

.contact .info-box i {
  color: var(--purle-blue);
}

.contact .info-box h3 {
  color: var(--purle-blue-dark);
}

.contact .info-box p {
  line-height: 1.7;
}

.news-image {
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(10, 43, 80, 0.12);
  width: 100%;
}

.news-table {
  border-collapse: separate;
  border-spacing: 0 1rem;
  width: 100%;
}

.news-table td {
  background: #fff;
  border: 1px solid #dfeaf0;
  box-shadow: 0 5px 18px rgba(10, 43, 80, 0.06);
  padding: 1.4rem;
}

.news-title {
  color: var(--purle-blue-dark);
  font-size: 1.25rem;
  font-weight: 700;
}

.news-meta {
  color: var(--purle-muted);
  font-size: 0.88rem;
  margin: 0.3rem 0;
}

.news-summary {
  margin: 0;
}

.news-pager td {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 1rem 0;
}

.article-body {
  color: #3d4b59;
  font-size: 1.04rem;
}

.article-body img,
.article-body table {
  height: auto !important;
  max-width: 100% !important;
}

.terms-content h2 {
  color: var(--purle-blue-dark);
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal-note {
  background: var(--purle-blue-soft);
  border-left: 4px solid var(--purle-accent);
  padding: 1.25rem 1.5rem;
}

.legacy-download-note {
  background: #fff8e6;
  border: 1px solid #ead8a8;
  border-radius: 4px;
  color: #59491d;
  padding: 1rem 1.25rem;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pdf-download {
  align-items: center;
  border: 1px solid var(--purle-blue);
  border-radius: 4px;
  display: inline-flex;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
}

.pdf-download:hover,
.pdf-download:focus {
  background: var(--purle-blue);
  color: #fff;
}

#footer .footer-top {
  background: #0d2d4d;
  border-color: #1d4d72;
}

#footer {
  background: #071e35;
}

#footer .footer-top h4,
#footer .footer-top .footer-info h3 {
  color: #bfe3f6;
}

#footer .footer-top .footer-links ul i {
  color: #9ecde5;
}

#footer .footer-top .footer-links ul a:hover {
  color: #bfe3f6;
}

#footer .company-detail {
  color: #ccdde8;
  font-size: 0.84rem;
  margin-top: 1rem;
}

.back-to-top {
  background: var(--purle-blue);
}

.back-to-top:hover {
  background: var(--purle-accent);
}

@media (max-width: 991px) {
  #header .logo h1 {
    font-size: 1.1rem;
  }

  .navbar-mobile {
    background: rgba(10, 43, 80, 0.78);
  }

  .navbar-mobile ul {
    top: 64px;
  }

  #hero {
    height: 68vh;
    min-height: 520px;
  }

  #hero .carousel-container {
    padding-left: 12%;
    padding-right: 12%;
  }
}

@media (max-width: 575px) {
  #hero {
    min-height: 540px;
  }

  #hero .carousel-container {
    align-items: center;
    padding: 95px 14% 20px;
    text-align: center;
  }

  #hero p {
    font-size: 1rem;
  }

  .page-hero {
    padding: 3.25rem 0 3rem;
  }

  .profile-photo {
    height: 180px;
    width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
