:root {
  --brand-navy: #041f36;
  --brand-deep: #0b2f57;
  --brand-accent: #2ec28d;
  --brand-light: #f5f8fb;
  --card-bg: #ffffff;
  /* Muted blue-gray gradient — less saturated/green than before */
  --site-gradient: linear-gradient(135deg, #0b2635 10%, #123847 55%, #224a56 100%);
  --brand-muted: #6d7c8f;
  --brand-border: rgba(6, 31, 54, 0.12);
  --brand-shadow: 0 24px 60px rgba(8, 37, 64, 0.15);
  --container-max: 1160px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body.site-body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--brand-navy);
  /* make the gradient the site-wide background so it shows through all sections */
  background: var(--site-gradient);
  background-attachment: fixed;
  background-size: cover;
  margin: 0;
  min-height: 100vh;
}

main.site-main {
  display: block;
}

.container {
  max-width: var(--container-max);
}

h1, h2, h3, h4 {
  font-family: "Source Serif 4", "Georgia", serif;
  color: var(--brand-navy);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--brand-light);
}


p {
  line-height: 1.65;
  color: var(--brand-muted);
}

.btn .bi {
  margin-right: 0.5rem;
  font-size: 1.05em;
}

.navbar {
  /* subtle frosted box for the navbar (restored, slightly darker) */
  background: rgba(4, 31, 54, 0.92); /* darker navy-tinted glass */
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  margin-top: clamp(1rem, 3vw, 1.6rem);
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px) saturate(110%);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
  box-shadow: 0 14px 36px rgba(4, 31, 54, 0.12);
  /* allow smooth fade/slide when toggled by JS - slowed for a gentler motion */
  transition: opacity 820ms ease, transform 560ms cubic-bezier(.2,.8,.2,1), background 820ms ease;
  will-change: opacity, transform, background;
}

.navbar-brand {
  color: #fff !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.75rem 0;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
  padding: 0.75rem 1rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff !important;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0.4rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(46, 194, 141, 0.35);
}

.navbar-toggler-icon {
  filter: invert(1) brightness(1.25);
}


.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
  background: var(--brand-accent);
}

.btn-primary {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #041f36;
  font-weight: 600;
  box-shadow: 0 22px 40px rgba(46, 194, 141, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #26a876;
  border-color: #26a876;
  color: #041f36;
}

.btn-outline-primary {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(46, 194, 141, 0.12);
  color: var(--brand-deep);
  border-color: var(--brand-accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0;
  background: transparent;
  transform: translateY(0);
  /* slower main header motion for a more pronounced 'fly' effect */
  transition: transform 560ms cubic-bezier(.2,.8,.2,1), opacity 420ms ease;
  will-change: transform, opacity;
}

/* When hidden (scrolling down) - move the header fully out of view */
.site-header.nav-hidden,
.site-header.nav-hidden .navbar {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(-120%);
}

/* When explicitly visible (scrolling up) */
.site-header.nav-visible,
.site-header.nav-visible .navbar {
  opacity: 1 !important;
  transform: translateY(0);
}

.hero {
  /* let the page gradient show through — keep text white for contrast */
  background: transparent;
  color: #fff;
  padding: clamp(4rem, 8vw, 1rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/texture.svg") center/cover;
  opacity: 0.08;
  pointer-events: none;
}

.hero h1,
.hero p,
.hero span {
  color: #fff;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.hero-lead {
  max-width: 620px;
  font-size: 1.12rem;
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.icon-circle-accent {
  background: rgba(46, 194, 141, 0.18);
  color: var(--brand-deep);
  box-shadow: 0 18px 32px rgba(46, 194, 141, 0.18);
}

.icon-circle-glass {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  box-shadow: 0 18px 36px rgba(4, 31, 54, 0.25);
}

.icon-circle:hover {
  transform: translateY(-4px);
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.icon-list li i {
  color: var(--brand-accent);
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.icon-list li span {
  color: var(--brand-muted);
}

.icon-list-compact {
  gap: 0.6rem;
}

.icon-list-hero li span {
  color: rgba(255, 255, 255, 0.85);
}

.icon-list-hero li i {
  color: rgba(255, 255, 255, 0.9);
}


.hero-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-stat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.hero-stat div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-metric {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
}

.hero-stat div span:last-child {
  color: rgba(255, 255, 255, 0.75);
}

.hero-card .hero-credentials {
  display: flex;
  flex-direction: column;
  margin-top: 1.75rem;
  gap: 1.5rem;
}

.hero-card .hero-stat {
  align-items: flex-start;
}

.hero-card .hero-metric {
  color: var(--brand-deep);
}

.hero-card .hero-stat div span:last-child {
  color: var(--brand-muted);
}

.hero-card {
  position: relative;
  z-index: 1;
  /* make hero card a frosted, boxed panel so it stands out on the hero gradient */
  background: var(--card-bg);
  border: 1px solid rgba(6,31,54,0.06);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 22px 48px rgba(4, 31, 54, 0.14);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  color: var(--brand-navy);
}

.hero-card h2 {
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
}

/* Ensure all text and icons inside the frosted hero-card are readable
   (overrides the more specific hero/hero-list rules that set white text) */
.hero-card p,
.hero-card li span,
.hero-card .icon-list-hero li span {
  color: var(--brand-muted);
}

.hero-card .icon-circle {
  color: var(--brand-deep);
}

/* Slightly darker glass style for icon circles inside the hero card */
.hero-card .icon-circle.icon-circle-glass {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(6, 31, 54, 0.06);
  color: var(--brand-deep);
  box-shadow: 0 12px 26px rgba(4,31,54,0.08);
}

/* Ensure the <i> icon inside the circle is also dark for contrast */
.hero-card .icon-circle i {
  color: var(--brand-deep);
}

/* If a circle in the hero card uses the accent style, make it slightly more saturated */
.hero-card .icon-circle.icon-circle-accent {
  background: rgba(46, 194, 141, 0.22);
  color: var(--brand-deep);
  box-shadow: 0 10px 24px rgba(46,194,141,0.08);
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  scroll-margin-top: 120px;
}

.section-alt {
  /* remove panel background so the gradient is continuous */
  background: transparent;
  backdrop-filter: none;
  border: none;
}

.section-kicker {
  display: inline-block;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

.section-lead {
  max-width: 720px;
}

.profile-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--brand-accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}


.service-card,
.highlight-card,
.profile-card,
.case-card,
.insight-card,
.cta-card {
  /* remove boxed styling so columns show the same background */
  background: transparent;
  border-radius: 18px;
  border: none;
  padding: 2.25rem;
  box-shadow: none;
  backdrop-filter: none;
}

/* make service cards a white, frosted (blurred) box */
.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(6,31,54,0.06);
  box-shadow: 0 18px 40px rgba(4, 31, 54, 0.06);
  color: var(--brand-navy);
}

/* make highlight cards use the same frosted style as service cards */
.highlight-card {
  background: var(--card-bg);
  border: 1px solid rgba(6,31,54,0.06);
  box-shadow: 0 18px 40px rgba(4, 31, 54, 0.06);
  color: var(--brand-navy);
}

.service-icon,
.card-icon,
.profile-icon,
.case-icon {
  margin-bottom: 1.25rem;
}

/* Profile image that replaces the icon inside .profile-icon */
.profile-icon {
  /* ensure any image inside is clipped to the circle */
  position: relative;
  overflow: hidden;
  padding: 0;
}

.profile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* boxed panel used to highlight specific sections while keeping the gradient visible */
.section-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(4,31,54,0.10);
  backdrop-filter: blur(6px);
}

.service-card h3,
.highlight-card h3,
.profile-card h3,
.case-card h3,
.insight-card h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--brand-navy);
}

.service-card ul,
.profile-card ul,
.highlight-card ul {
  margin-bottom: 0;
}

.workflow {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  /* frosted white boxed panel to match service/hero cards */
  background: var(--card-bg);
  border: 1px solid rgba(6,31,54,0.06);
  box-shadow: 0 18px 40px rgba(4, 31, 54, 0.06);
  color: var(--brand-navy);
}

.workflow-index {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--brand-accent);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 14px 30px rgba(4, 31, 54, 0.12);
}

.workflow-step h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
}

.workflow-step h3 i {
  font-size: 1.35rem;
  color: var(--brand-accent);
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.badge-grid span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  /* clearer solid green badge for better visibility */
  background: var(--brand-accent);
  color: #041f36; /* dark navy text for good contrast */
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms ease, background 220ms ease;
  will-change: transform, box-shadow;
}

.badge-grid span i {
  font-size: 1.05rem;
}

/* Shimmer/shine pseudo-element */
.badge-grid span {
  /* Prepare for background-based shimmer. Start further left so the animation can travel farther right. */
  background-image: none;
  background-repeat: no-repeat;
  background-position: -160% center;
  /* narrower streak gives a cleaner sheen while allowing a long travel distance */
  background-size: 30% 220%;
}

/* play shimmer on hover / focus using a background gradient — more reliable than pseudo-elements */
.badge-grid span:hover,
.badge-grid span:focus,
.badge-grid span:focus-within {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(4,31,54,0.10);
  background-image: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.32) 50%, transparent 100%);
  animation: badge-shine-bg 900ms ease 1;
}

/* gentle idle pulse to draw subtle attention (not too busy) */
.badge-grid span[data-pulse="true"] {
  animation: badge-pulse 4200ms ease-in-out infinite;
}

@keyframes badge-shine-bg {
  0% { background-position: -160% center; }
  60% { background-position: 60% center; }
  100% { background-position: 220% center; }
}

@keyframes badge-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.01); }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .badge-grid span {
    transition: none !important;
    animation: none !important;
    background-image: none !important;
  }
}

.insight-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

/* make each item inside the insight grid use a solid white background */
.insight-grid > div {
  /* keep insight grid items inline with section background (no individual white boxes)
     -- the containing .insight-card will become the white boxed element */
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  color: var(--brand-navy);
}

.insight-grid > div h4 {
  color: var(--brand-navy);
}

.insight-grid > div p {
  color: var(--brand-muted);
}

/* Make the insight card container a white boxed panel */
.insight-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 24px rgba(4, 31, 54, 0.06);
  border: 1px solid rgba(6,31,54,0.06);
  color: var(--brand-navy);
}

/* Make the profile card white boxed as well */
.profile-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 24px rgba(4, 31, 54, 0.06);
  border: 1px solid rgba(6,31,54,0.06);
  color: var(--brand-navy);
}

.insight-grid h4 {
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.1rem;
}

.insight-grid h4 i {
  color: var(--brand-accent);
}

.case-card {
  position: relative;
  overflow: hidden;
  /* make case cards match other frosted panels */
  background: var(--card-bg);
  border: 1px solid rgba(6,31,54,0.06);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(4, 31, 54, 0.06);
  color: var(--brand-navy);
}

/* Logo images inside case cards */
.case-icon img.case-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.case-icon img.case-logo.raster {
  /* For raster fallbacks: place the image on a small white inset so logos with dark backgrounds don't appear as a full dark square. */
  filter: grayscale(1) contrast(1.05);
  background: #fff;
  padding: 6px;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  box-shadow: 0 6px 18px rgba(4,31,54,0.06);
}

.case-card::after {
  /* remove original overlay so frosted background reads clean */
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.case-card > * {
  position: relative;
  z-index: 1;
}

.case-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.section-cta {
  /* use global gradient — keep section transparent to show continuity */
  background: transparent;
  color: #fff;
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.section-cta .section-kicker,
.section-cta h2,
.section-cta p {
  color: #fff;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* restore semitransparent frosted style for CTA card */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 22px 50px rgba(4, 31, 54, 0.16);
  backdrop-filter: blur(6px);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* .section-faq styles removed — FAQ section deleted from the page */

.site-footer {
  background: #041626;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer .btn .bi {
  margin-right: 0.4rem;
}

.footer-brand {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .cta-actions {
    flex-direction: row;
    align-items: center;
  }

  .cta-actions .btn {
    min-width: 200px;
  }
}

@media (min-width: 992px) {
  .hero-credentials {
    gap: 2.5rem;
  }

  .icon-circle {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}

/* Make the profile circle slightly larger than the default icon-circle
   without affecting other icon circles site-wide. Adjusts responsively. */
.profile-icon.icon-circle {
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
}

@media (min-width: 992px) {
  .profile-icon.icon-circle {
    width: 88px;
    height: 88px;
    font-size: 1.85rem;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    border-radius: 12px;
  }

  .hero-card {
    padding: 2rem;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    border-radius: 12px;
  }

  .hero-credentials {
    gap: 1rem;
  }

  .hero-stat {
    min-width: 160px;
  }

  .service-card,
  .highlight-card,
  .profile-card,
  .case-card,
  .insight-card,
  .cta-card {
    padding: 1.85rem;
  }
}

/* Scroll reveal helpers */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 720ms cubic-bezier(.2,.8,.2,1), transform 760ms cubic-bezier(.2,.8,.2,1), box-shadow 720ms ease;
  will-change: opacity, transform, box-shadow;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  /* No global shadow here to avoid strong section outlines */
  box-shadow: none !important;
}

/* Apply elevation only to elements that explicitly should be elevated */
.reveal-elevate.revealed {
  box-shadow: 0 18px 40px rgba(4,31,54,0.08);
}
.reveal-on-scroll[data-delay] {
  transition-delay: calc(var(--reveal-delay, 0ms));
}
