:root {
  /* Ported CPAS Health Colours */
  --abbey: #4d4d4d;
  --azure: #405da7;
  --black: #000000;
  --chambray: #394f89;
  --chambray-2: #3a4f89;
  --coconut: #fefefe;
  --cornflower: #99d8e6;
  --curious-blue: #3a98d1;
  --dove-gray: #707070;
  --firefly: #0d1f38;
  --indigo: #4b5fc2;
  --jaguar: #010012;
  --midnight-blue: #1f4179;
  --mine-shaft: #333333;
  --polar: #e4f4f8;
  --shakespeare: #57a7d9;
  --slate-blue: #5972b2;
  --light-slate-blue: #6b7fb1;
  --sonic-silver: #737373;
  --tangaroa: #0f1b39;
  --turquoise-blue: #45e3ff;
  --white: #ffffff;
  --wistful: #9aa6dd;
  --wistful-o: #9aa6dd4b;
  --card: #d2d9fdc9;
  --card-variant: #ddf1fe;
  --line-colour: #4a4c6b;
  --ink: #10203f;

  --cursor-logo-light: #99d8e6;
  --cursor-logo-medium: #3a98d1;
  --cursor-logo-dark: #405da7;

  --subheader: #b3bce0;

  --accordion: #d7e4fc;
  --timeline1: #89adef;
  --timeline2: #346ed8;
  --timeline3: #243d6b;

  --modules1: #2c6bb4;
  --modules1accent: #b0c4e8;
  --modules1border: #1b5293;
  --modules2: #699dcd;
  --modules2accent: #d8e4fb;
  --modules2border: #3770a5;
  --modules3: #a6cfe5;
  --modules3accent: #ffffff;
  --modules3border: #d1eaf3;
  --modules4: #0d2f5c;
  --modules4accent: #89adef;
  --modules4border: #154a8e;

  --popup: #112545;

  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --ink: #10203f;
  --muted-ink: #50627f;
  --light-text: #b7c5db;
  --soft-blue: #eef7fb;
  --glow-blue: rgba(69, 227, 255, 0.22);
  --shadow-soft: 0 24px 70px rgba(13, 31, 56, 0.12);
  --shadow-card: 0 18px 45px rgba(13, 31, 56, 0.10);
  --radius-lg: 34px;
  --radius-md: 24px;
  --feature: #c9d9f4;

  /* === Colors - Named for clarity === */
  --color-celtic-blue: #004080;
  /* Dark blue used in headings */
  --color-firefly: #0d1f38;
  /* Deep navy blue */
  --color-cornflower: #99d8e6;
  /* Light blue divider lines */
  --color-dark-charcoal: #333;
  /* General text color */
  --color-white: #ffffff;
  /* White background/text */
  --color-silver: #f9f9f9;
  /* Light gray background */
  --color-gallery: #f3f3f3;
  /* Light gray for form fields */
  --color-curious-blue: #0078d7;
  --color-curious-blue: #4280b1;
  /* Bright blue for buttons */
  --color-dove-gray: #707070;
  /* Gray for secondary text */
  --color-powder-blue: #cce0ff;
  /* Light blue border or background */
  --color-light-silver: #ccc;
  /* Light gray for borders */

  --chambray: #394f89;
  --indigo: #4b5fc2;
  --shakespeare: #57a7d9;
  --slate-blue: #5972b2;
  --color-hover-blue: #00a0df;
  /* Footer link hover, accents */
  --color-button-hover: #005fa3;
  /* Button hover state */
  --font-size-m: 20px;

    /* === Added for consistency === */
  --color-hover-blue: #00a0df;
  /* Footer link hover, accents */
  --color-button-hover: #005fa3;
  /* font */
  --font-size-xs: 10px;
  --font-size-s: 15px;
  --font-size-m: 20px;
  --font-size-l: 30px;
  --font-size-xl: 40px;
  --font-size-xxl: 50px;
  --font-size-xxxl: 60px;

}

/* === Local Font - Poppins (TTF) === */
@font-face {
  font-family: 'Poppins';
  src: url('Fonts/Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('Fonts/Poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('Fonts/Poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === Global Styles === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  width: 100%;
  height: 100%;
  overflow-x: clip;
  font-family: 'Poppins', sans-serif;
  color: var(--color-dark-charcoal);
  background-color: var(--color-silver);
  scroll-behavior: smooth;
}

a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
label,
input,
textarea,
select,
button {
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Logo inside loader — subtle entrance */
/* Full-screen loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  height: 100%;
  background: var(--color-silver);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
}

.loader.active {
  display: flex;
  animation: fadeOutLoader 1.8s forwards;
  animation-delay: 1.2s;
}

/* Subtle logo entrance */
.loader-logo {
  width: 40vw;
  max-width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.92);
  animation: subtleIntro 1.0s ease-out forwards;
}

@keyframes subtleIntro {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fade out (keep your original) */
@keyframes fadeOutLoader {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ====================================== Navigation ================================== */
.navbar {
  background-color: var(--color-firefly);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: none;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
}

.nav-logo {
  display: flex;
  align-items: center;
  color: var(--color-white);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  margin-right: 0.5rem;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.nav-logo:hover {
  transform: none;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.8;
  transform: scale(1.2);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: transform 180ms ease;
}

.nav-links li a:hover {
  /* opacity: 0.8; */
  transform: scale(1.05);
  transition: transform 180ms ease !important;
  color: var(--color-cornflower);
}

.hamburger {
  display: none;
}

/* ====================================== Header ==================================== */
.header {
  color: var(--color-dark-charcoal);
  min-height: 95vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("vector/CursorBackgroundDesktop.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* animation: cursor-background-loop 18s ease-in-out infinite; */

}

@keyframes cursor-background-loop {
  0%,
  100% {
    background-position: center center;
  }

  50% {
    background-position: center calc(50% + 24px);
  }
}

.header-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  padding: 2rem;
  margin-bottom: 12vh;
}

.hero-text{
  max-width: 600px;
  
}
.hero-text p{
  font-size: var(--font-size-m);
  line-height: 1.6;
  color: var(--slate-blue);
  text-align: center;
}

.header-logo {
  height: 12vh;
  width: auto;
  align-items: center;
}

.tagline {
  font-size: 2.4rem;
  text-align: center;
  color: var(--color-dark-charcoal);
  margin-top: 1.5rem;
}

.tagline-highlight {
  color: var(--slate-blue);
  font-weight: bold;
  font-size: 40pt;
}

/* ==================================== Services Section ============================================= */
.services {
  padding: 3rem 0;
  background-color: var(--color-white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

.services-title {
  position: relative;
  display: flex;
  width: min(calc(100% - 40px), 1110px);
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.22em;
  margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
  padding-bottom: 1rem;
  color: var(--color-firefly);
  font-size: clamp(2.35rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
}

.services-title .title-main {
  color: var(--color-cornflower);
}

.services-title .title-accent {
  margin-left: 0;
  color: var(--color-firefly);
}

.solution-box {
  background-color: var(--color-firefly);
  padding: 1.5rem;
  border-radius: 0px 0px 65px 0px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease;
  z-index: 1;
  min-height: 380px;
}

.solution-box:hover,
.solution-box:focus-visible {
  transform: scale(1.05);
}

.solution-image {
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
  border-radius: 10px 0px 10px 0px;
}

.solution-box h3 {
  color: var(--color-celtic-blue);
  font-size: 25px;
  margin-bottom: 0.75rem;
  margin-top: 0.75rem;
  text-align: left;
}

.light-blue-divider {
  width: 60px;
  height: 7px;
  background-color: var(--color-cornflower);
  margin-top: 1.5rem;
  border-radius: 4px;
}

.solution-box p {
  font-size: 15px;
  color: var(--color-white);
  text-align: left;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease;
  margin-top: 0;
}

.solution-box.is-open p {
  max-height: 300px;
  /* large enough for content */
  opacity: 1;
  margin-top: 0.75rem;
}

.solution-box.is-open {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}


.solution-box.box-type-1 h3,
.solution-box.box-type-5 h3 {
  color: var(--color-curious-blue);
}

.solution-box.box-type-2 h3,
.solution-box.box-type-6 h3 {
  color: var(--color-cornflower);
}

.solution-box.box-type-3 h3,
.solution-box.box-type-7 h3 {
  color: var(--color-powder-blue);
}

.solution-box.special-box h3 {
  color: var(--color-white);
}

.special-box {
  grid-column: 1 / -1;
  background-color: var(--color-curious-blue);
  padding: 0;
  min-height: 300px;

}

.inner-outline-box {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  width: 100%;
  padding: 0;
  background-color: transparent;
}

.inner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

.text-content {
  flex: 1;
  color: var(--color-celtic-blue);
  padding-right: 2rem;
}

.text-content h3 {
  font-size: 24px;
  margin-bottom: 0.75rem;
}

.image-content {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.solution-image1 {
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  /* This is what fixed the issue with all section-cards expanding */
  align-items: start;
  justify-items: center;
  width: min(calc(100% - 2rem), 1110px);
  max-width: 1110px;
  margin: 0 auto;
}

/* ========================================== Our Partners Section ========================================================= */
.partners {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  background-color: var(--color-silver);
}

.partners-section-heading {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(2.25rem, 5vw, 3.75rem) max(1.5rem, calc((100% - 1110px) / 2));
  background-color: var(--color-firefly);
  text-align: center;
}

.partners .section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.2em;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  text-wrap: balance;
}

.partners .section-title .title-accent {
  margin-left: 0;
}

.partners-section-heading h3 {
  width: min(100%, 720px);
  margin: 1rem 0 0;
  color: var(--color-white);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

.title-main-dark {
  color: var(--color-celtic-blue);
  position: relative;
  z-index: 1;
}

.title-main {
  color: var(--color-cornflower);
  position: relative;
  z-index: 1;
}

.title-accent {
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 2.8vw, 2.25rem);
  max-width: 1110px;
  margin: 0 auto;
}

.partner-link {
  display: flex;
  width: 100%;
  min-height: 270px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 3.5vw, 3rem);
  overflow: hidden;
  background-color: var(--color-white);
  border: 1px solid rgba(0, 64, 128, 0.12);
  border-top: 4px solid var(--color-cornflower);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(13, 31, 56, 0.08);
  text-align: center;
  transition: transform 180ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.partner-link:hover,
.partner-link:focus-visible {
  border-color: rgba(0, 120, 215, 0.38);
  box-shadow: 0 20px 44px rgba(13, 31, 56, 0.16);
  outline: none;
  transform: scale(1.05);
}

.partner-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(153, 216, 230, 0.42), 0 20px 44px rgba(13, 31, 56, 0.16);
}

.partner-logo-wrap {
  display: flex;
  width: 100%;
  min-height: 150px;
  align-items: center;
  justify-content: center;
}

.partner-link .partner-logo-wrap img {
  width: auto;
  max-width: min(100%, 230px);
  height: auto;
  max-height: 115px;
  margin: 0;
  object-fit: contain;
}

.partner-reveal {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 320ms ease, margin-top 320ms ease, opacity 200ms ease, transform 320ms ease;
}

.partner-link:hover .partner-reveal,
.partner-link:focus-visible .partner-reveal {
  max-height: 240px;
  margin-top: 1.35rem;
  opacity: 1;
  transform: translateY(0);
}

.partner-reveal p {
  margin: 0 0 1.15rem;
  color: var(--color-dove-gray);
  font-size: 0.9rem;
  line-height: 1.65;
}

.partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-celtic-blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.partner-cta::after {
  content: '';
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 1.05em;
  background-color: currentColor;
  -webkit-mask: url('vector/arrow.svg') center / contain no-repeat;
  mask: url('vector/arrow.svg') center / contain no-repeat;
  transition: transform 180ms ease;
}

.partner-link:hover .partner-cta::after,
.partner-link:focus-visible .partner-cta::after {
  transform: translate(3px, -3px);
}

@media (max-width: 900px) {
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  .partner-grid {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
  }

  .partner-link {
    min-height: 0;
    padding: 2rem 1.5rem;
  }

  .partner-logo-wrap {
    min-height: 125px;
  }
}

@media (hover: none), (pointer: coarse) {
  .partner-reveal {
    max-height: 16rem;
    margin-top: 0.9rem;
    opacity: 1;
    transform: none;
  }
}

/* =========================================== Contact Section ================================================= */
.contact {
  padding: 0 0 2rem 0;
  position: relative;
}

.section-title {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 2rem;
}

.title-main {
  color: var(--color-cornflower);
}

.title-accent {
  color: var(--color-white);
  margin-left: 10px;
}

.contact-content {
  display: flex;
  gap: 2.5rem;
  padding: 0 0 2.5rem;
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--color-firefly);
}

.contact-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  flex: 1;
}

.contact-form label,
.message-box label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-cornflower);
  font-size: 20px;
  font-weight: 600;
}

.contact-form input,
.contact-form select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-light-silver);
  border-radius: 4px;
}

.message-box {
  flex: 1;
  width: 100%;
  padding: 15px;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.message-box textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-light-silver);
  border-radius: 4px;
}

.message-box button {
  padding: 0.75rem 1.5rem;
  background-color: var(--color-curious-blue);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.message-box button:hover {
  background-color: var(--color-button-hover);
}

/* =============================================== Footer ======================================================= */
footer.footer {
  padding-top: 5rem;
  color: rgba(255, 255, 255, 0.72);
  background: var(--color-firefly);
}

footer.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr 0.9fr 0.7fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-brand img {
  width: 145px;
  height: auto;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
}

.footer-grid h2 {
  margin-bottom: 1.2rem;
  color: var(--color-cornflower);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand):not(.footer-award) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-grid a:hover,
.footer-grid a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--color-cornflower);
}

.footer-award {
  display: flex;
  justify-content: flex-end;
}

.footer-award img {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 3rem;
  }

  .footer-award {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  footer.footer {
    padding-top: 4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-grid > div:not(.footer-brand):not(.footer-award) {
    align-items: center;
  }

  .footer-brand,
  .footer-award {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* =========================================== Responsive Design ======================================================= */
@media (max-width: 768px) {


  .navbar .container {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .nav-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header {
    background-color: var(--color-white);
    background-image: url("vector/CursorBackgroundMobile.svg") !important;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: calc(100svh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
  }

  .header::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px) saturate(0.92);
    -webkit-backdrop-filter: blur(3px) saturate(0.92);
    content: '';
    pointer-events: none;
  }

  .header-content {
    width: min(100%, 36rem);
    max-width: none;
    margin-bottom: 0;
    padding: clamp(2rem, 7vh, 4rem) clamp(1rem, 5vw, 2rem);
    text-align: center;
    align-items: center;
  }

  .header-content .header-logo {
    display: block;
    margin: 0 auto;
    width: min(78vw, 23rem);
    max-width: 100%;
    height: auto;
  }

  .tagline {
    margin-top: 1.4rem;
    font-size: clamp(1.25rem, 5.8vw, 1.7rem);
    line-height: 1.25;
    text-align: center;
  }

  .tagline-highlight {
    margin-top: 0.35rem;
    font-size: clamp(2rem, 10vw, 3.1rem);
    line-height: 1.05;
    text-align: center;
    text-wrap: balance;
  }

  .hero-text {
    width: min(100%, 34rem);
    margin-top: 1.2rem;
  }

  .hero-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2.5rem;
    padding-top: 30px;
  }

  .tagline {
    font-size: 1.3rem;
  }

}

@media (max-width: 992px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: min(calc(100% - 2rem), 420px);
    padding: 0;
  }

  .solution-box {
    width: 100%;
    min-height: 0;
    padding: 1.25rem;
    border-radius: 0 0 38px 0;
  }

  .solution-box h3 {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .special-box {
    padding: 0;
  }

  .inner-content {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .inner-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .text-content {
    padding-right: 0;
  }

  .image-content {
    justify-content: center;
  }

  .solution-image1 {
    max-width: 100%;
  }
}

@media (max-width: 768px) {

  .contact-form {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-cornflower);
    font-size: 0.95rem;
    text-align: center;
  }

  .contact-form input,
  .contact-form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-light-silver);
    border-radius: 4px;
    font-size: 1rem;
  }

}

@media (max-width: 768px) {
  footer.footer .container {
    padding: 30px 20px;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }
}

/* === Body Padding to Clear Fixed Navbar === */
body {
  padding-top: 70px;
}

/* === Smooth Scroll Offset for Fixed Navbar === */
#contact-section {
  scroll-margin-top: 70px;
}

/* === MOBILE HAMBURGER MENU — TOP-ALIGNED SLIDE DOWN === */
@media (max-width: 480px) {
  .partners .section-title {
    font-size: clamp(2.25rem, 13vw, 3rem);
    height: auto;
    min-height: 0;
    padding: 0;
    flex-wrap: wrap;
    text-align: center;
  }

  .partners-section-heading {
    min-height: 0;
    padding: 2.5rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.625rem 0;
  }

  .navbar .container {
    height: 50px;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .nav-logo {
    position: relative;
    z-index: 2001;
  }

  .nav-logo-img {
    height: 42px;
    margin-right: 0;
  }

  .hamburger {
    display: flex !important;
    width: 44px;
    height: 44px;
    padding: 9px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--color-cornflower);
    font-size: 0;
    cursor: pointer;
    z-index: 2001;
    position: fixed;
    top: 0.8rem;
    right: max(0.8rem, env(safe-area-inset-right));
    transition: background-color 180ms ease;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-gallery);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: calc(70px + 2rem) max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom));
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    z-index: 2000;
    box-shadow: none;
    border-bottom: none;
  }

  .nav-links.mobile-active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    font-size: clamp(1.5rem, 7vw, 2.1rem) !important;
    color: var(--color-celtic-blue) !important;
    padding: 1rem !important;
    min-height: 48px;
    text-align: center;
    border-left: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links li a:hover {
    background: transparent;
    border-left: none;
  }
}

@media (max-width: 620px) {
  .services {
    padding: 2.75rem 0;
  }

  .services-title {
    width: min(calc(100% - 2rem), 420px);
    margin-bottom: 2rem;
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .partners {
    padding: 3rem 0;
  }

  .partners-section-heading {
    margin-bottom: 2rem;
    padding: 2.5rem 1rem;
  }

  .partner-grid {
    gap: 1.25rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .nav-logo:hover .nav-logo-img,
  .solution-box:hover,
  .solution-box:focus-visible,
  .partner-link:hover,
  .partner-link:focus-visible {
    transform: none;
  }

  .partner-reveal {
    max-height: none;
  }
}

.hamburger:hover,
.hamburger:focus-visible {
  background: rgba(153, 216, 230, 0.16);
  outline: none;
}

.hamburger:focus-visible {
  box-shadow: 0 0 0 3px rgba(153, 216, 230, 0.34);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  flex: 0 0 2px;
  border-radius: 2px;
  background: var(--color-cornflower);
  transition: transform 220ms ease, opacity 160ms ease;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Consistent hover scaling for interactive elements; text-entry fields are excluded. */
body:not(#interaction-specificity) :is(
  a,
  button,
  select,
  summary,
  [role="button"]:not(input):not(textarea),
  [tabindex]:not([tabindex="-1"]):not(input):not(textarea),
  input:is(
    [type="button"],
    [type="submit"],
    [type="reset"],
    [type="checkbox"],
    [type="radio"],
    [type="range"],
    [type="color"],
    [type="file"]
  )
):not(:disabled) {
  transform-origin: center;
  transition: transform 180ms ease;
}

/* body:not(#interaction-specificity) :is(
  a,
  button,
  select,
  summary,
  [role="button"]:not(input):not(textarea),
  [tabindex]:not([tabindex="-1"]):not(input):not(textarea),
  input:is(
    [type="button"],
    [type="dropdown"],
    [type="submit"],
    [type="reset"],
    [type="checkbox"],
    [type="radio"],
    [type="range"],
    [type="color"],
    [type="file"]
  )
):not(:disabled):hover {
  transform: scale(1.05);
} */

/* Navbar links keep the shared scale effect without vertical movement. */
body:not(#interaction-specificity) .navbar .nav-links li a:not(:disabled):hover {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .header {
    animation: none;
  }

  .loader.active {
    display: none;
    animation: none;
  }

  .hamburger,
  .hamburger-line,
  .nav-links,
  .partner-link,
  .partner-logo-wrap img,
  .partner-reveal,
  .partner-cta::after {
    transition: none;
  }

  body:not(#interaction-specificity) :is(
    a,
    button,
    select,
    summary,
    [role="button"]:not(input):not(textarea),
    [tabindex]:not([tabindex="-1"]):not(input):not(textarea),
    input:is(
      [type="button"],
      [type="submit"],
      [type="reset"],
      [type="checkbox"],
      [type="radio"],
      [type="range"],
      [type="color"],
      [type="file"]
    )
  ) {
    transform: none !important;
    transition: none !important;
  }
}

/* ================================================================================
   Healthcare feature hero
   ============================================================================= */

.hero {
  color: var(--color-white);
  background-color: var(--color-celtic-blue);
}

.hero-divider {
  width: 100%;
  height: 8px;
  margin: 0;
  background-color: var(--color-cornflower);
}

.hero .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 4px minmax(260px, 0.72fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
  width: min(calc(100% - 48px), 1110px);
  max-width: 1110px;
  min-height: 340px;
  margin: 0 auto;
  padding: clamp(3.75rem, 7vw, 5.5rem) 0;
}

.hero .title-container {
  min-width: 0;
}

.hero .title-box {
  width: 100%;
  max-width: 650px;
}

.hero h2 {
  margin: 0;
  color: var(--color-cornflower);
  font-size: clamp(2.4rem, 3.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero h2 span {
  display: block;
  color: var(--color-white);
}

.vertical-lightblue-divider {
  width: 4px;
  height: clamp(120px, 13vw, 165px);
  margin: 0;
  justify-self: center;
  background-color: var(--color-cornflower);
  border-radius: 99px;
  opacity: 0.72;
}

.hero-action-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  max-width: 340px;
  padding: 0;
}

.hero-action-panel .hero-description {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

.hero .hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  white-space: nowrap;
  margin: 0;
  padding: 0.6rem 1.2rem;
  color: var(--slate-blue);
  background-color: var(--color-white);
  border: 2px solid var(--chambray);
  border-radius: 25px;
  font-size: 15pt;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero .hero-button::after {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23394f89' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  transition: background-image 0.3s ease;
}

body:not(#interaction-specificity) .hero .hero-button:not(:disabled):hover,
.hero .hero-button:focus-visible {
  color: var(--color-white);
  background-color: var(--indigo);
  border-color: var(--shakespeare);
  transform: translateY(-2px);
}

.hero .hero-button:hover::after,
.hero .hero-button:focus-visible::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
}

.hero .hero-button:focus-visible {
  outline: 3px solid rgba(87, 167, 217, 0.4);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: min(calc(100% - 40px), 680px);
    min-height: auto;
    padding: 4rem 0;
  }

  .hero .title-box,
  .hero-action-panel {
    max-width: 100%;
  }

  .vertical-lightblue-divider {
    width: 100%;
    height: 2px;
  }

  .hero h2 {
    font-size: clamp(2.25rem, 7vw, 3.15rem);
  }

  .hero-action-panel .hero-description {
    max-width: 620px;
  }
}

@media (max-width: 480px) {
  .hero .hero-content {
    width: min(calc(100% - 32px), 680px);
    gap: 1.6rem;
    padding: 3.25rem 0;
  }

  .hero h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .hero .hero-button {
    width: 100%;
    justify-content: center;
  }
}
