/*
Theme Name: Medisafe Clean
Theme URI: https://medisafe-recovery.local
Author: 333 Systems Ltd
Description: Lightweight local-review replacement theme for Medisafe.
Version: 0.6.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: medisafe-clean
*/

:root {
  --medisafe-blue: #0d3b66;
  --medisafe-blue-deep: #082642;
  --medisafe-sky: #eaf4fb;
  --medisafe-yellow: #f6c945;
  --medisafe-ink: #17202a;
  --medisafe-muted: #5d6b78;
  --medisafe-line: #d8e2ea;
  --medisafe-white: #fff;
  --medisafe-radius: 1rem;
  --medisafe-shadow: 0 12px 32px rgba(8, 38, 66, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--medisafe-ink); background: var(--medisafe-white); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--medisafe-blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--medisafe-yellow); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 1000; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem 1rem; margin: 0; clip: auto; background: var(--medisafe-yellow); color: var(--medisafe-blue-deep); }
.site-shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--medisafe-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand img { width: 210px; }
.menu-toggle { display: none; border: 1px solid var(--medisafe-blue); background: var(--medisafe-white); color: var(--medisafe-blue); border-radius: .5rem; padding: .55rem .7rem; font-weight: 700; }
.primary-nav ul { display: flex; align-items: center; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; font-weight: 700; font-size: .95rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 2px solid transparent; border-radius: 999px; padding: .7rem 1.15rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--medisafe-yellow); color: var(--medisafe-blue-deep); }
.button-primary:hover { background: #eab52e; color: var(--medisafe-blue-deep); }
.button-secondary { background: var(--medisafe-blue); color: var(--medisafe-white); }
.button-ghost { background: transparent; border-color: currentColor; }
.hero .button-ghost { color: var(--medisafe-white); border-color: rgba(255,255,255,.75); }
.hero .button-ghost:hover { background: rgba(255,255,255,.12); }
.hero { background: linear-gradient(135deg, var(--medisafe-blue-deep), var(--medisafe-blue)); color: var(--medisafe-white); padding: clamp(4rem, 8vw, 7rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 3rem; }
.eyebrow { letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; font-weight: 800; color: var(--medisafe-yellow); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; color: var(--medisafe-blue-deep); }
.hero h1 { color: var(--medisafe-white); font-size: clamp(2.4rem, 5vw, 4.5rem); max-width: 12ch; }
.hero p { max-width: 60ch; font-size: 1.15rem; color: #e9f5ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-panel { min-height: 280px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: var(--medisafe-radius); background: radial-gradient(circle at 25% 25%, rgba(246,201,69,.28), transparent 35%), rgba(255,255,255,.08); padding: 2rem; text-align: center; }
.hero-panel strong { display: block; font-size: 3rem; color: var(--medisafe-yellow); }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-tint { background: var(--medisafe-sky); }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading p { color: var(--medisafe-muted); }
.trust-grid, .card-grid, .gallery-grid { display: grid; gap: 1rem; }
.trust-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.card, .gallery-card, .form-card { background: var(--medisafe-white); border: 1px solid var(--medisafe-line); border-radius: var(--medisafe-radius); box-shadow: var(--medisafe-shadow); padding: 1.35rem; }
.trust-card { background: var(--medisafe-white); border-left: 5px solid var(--medisafe-yellow); border-radius: .75rem; padding: 1.1rem; }
.trust-card small, .muted { color: var(--medisafe-muted); }
.service-icon, .gallery-placeholder { display: grid; place-items: center; background: var(--medisafe-sky); color: var(--medisafe-blue); border-radius: .75rem; min-height: 150px; margin-bottom: 1rem; font-weight: 800; letter-spacing: .06em; text-align: center; }
.service-card-grid { align-items: stretch; }
.service-card, .service-detail-card { overflow: hidden; }
.service-card .service-image-wrap, .service-detail-card .service-image-wrap { margin: -1.35rem -1.35rem 1.2rem; }
.service-image-wrap { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--medisafe-sky); }
.service-image { width: 100%; height: 100%; object-fit: cover; }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.service-detail-card p:last-child { margin-bottom: 0; }
.gallery-card h3 { font-size: 1.1rem; }
.gallery-card .status { display: inline-block; color: var(--medisafe-muted); font-size: .85rem; margin-bottom: .5rem; }
.gallery-category { margin: 0 0 .35rem; color: var(--medisafe-blue); font-size: .86rem; font-weight: 700; }
.gallery-meta { margin: 0 0 .5rem; color: var(--medisafe-muted); font-size: .9rem; }
.gallery-review-notice { border-left: 4px solid var(--medisafe-yellow); background: #fff9e4; color: var(--medisafe-blue-deep); padding: .9rem 1rem; margin: 0 0 1.25rem; font-weight: 700; }
.gallery-image-frame { position: relative; aspect-ratio: 2 / 1; display: grid; place-items: center; overflow: hidden; background: #f7fafc; border: 1px solid var(--medisafe-line); border-radius: .75rem; margin-bottom: 1rem; }
.gallery-image { width: 100%; height: 100%; object-fit: contain; padding: .65rem; }
.gallery-image-fallback { display: none; place-items: center; position: absolute; inset: 0; background: var(--medisafe-sky); color: var(--medisafe-blue); font-weight: 800; letter-spacing: .06em; text-align: center; }
.gallery-image-frame.is-image-error .gallery-image { display: none; }
.gallery-image-frame.is-image-error .gallery-image-fallback { display: grid; }
.gallery-card.is-filtered { display: none; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; }
.filter-button { border: 1px solid var(--medisafe-blue); border-radius: 999px; padding: .55rem .8rem; background: var(--medisafe-white); color: var(--medisafe-blue); font: inherit; font-weight: 700; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { background: var(--medisafe-blue); color: var(--medisafe-white); }
.page-hero { background: var(--medisafe-sky); padding: 3.5rem 0; border-bottom: 1px solid var(--medisafe-line); }
.content-narrow { width: min(820px, 100%); }
.content-narrow p, .content-narrow li { color: #344454; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field-full { grid-column: 1 / -1; }
.form-section { border: 1px solid var(--medisafe-line); border-radius: .75rem; padding: 1rem; margin: 1.5rem 0; }
.form-section legend { padding: 0 .35rem; font-weight: 800; color: var(--medisafe-blue-deep); }
.form-instructions { background: var(--medisafe-sky); border-left: 4px solid var(--medisafe-blue); padding: .75rem 1rem; }
.form-checkbox { display: flex; align-items: flex-start; gap: .55rem; margin: 1.2rem 0; font-weight: 400; }
.form-checkbox input { width: auto; margin-top: .3rem; }
label { font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #aebdca; border-radius: .5rem; padding: .75rem; font: inherit; color: var(--medisafe-ink); background: #fff; }
textarea { min-height: 150px; resize: vertical; }
.form-notice { border-radius: .6rem; padding: .85rem 1rem; margin-bottom: 1rem; }
.form-success { background: #e4f6eb; color: #155c32; }
.form-error { background: #fff0f0; color: #8a1d1d; }
.site-footer { background: var(--medisafe-blue-deep); color: #d8e8f5; padding: 3rem 0 1.25rem; }
.site-footer h2, .site-footer h3 { color: var(--medisafe-white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.site-footer a { color: var(--medisafe-white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); margin-top: 2rem; padding-top: 1rem; font-size: .9rem; }
.placeholder { color: #785b00; background: #fff7d6; border: 1px dashed #d7ad27; padding: .25rem .45rem; border-radius: .35rem; }
.not-found { text-align: center; padding: 6rem 0; }

@media (max-width: 900px) {
  .primary-nav ul { gap: .65rem; }
  .hero-grid, .two-column, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .gallery-grid, .service-detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .header-inner { min-height: 68px; }
  .brand img { width: 170px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; inset: 68px 0 auto; background: var(--medisafe-white); border-bottom: 1px solid var(--medisafe-line); padding: 1rem; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; }
  .trust-grid, .card-grid, .gallery-grid, .form-grid, .service-detail-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: auto; }
  .gallery-filters { align-items: stretch; }
  .filter-button { flex: 1 1 auto; }
  .hero { padding: 3.5rem 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Homepage redesign and interaction system */
:root {
  --medisafe-ease: cubic-bezier(.22, .61, .36, 1);
  --medisafe-focus: 0 0 0 4px rgba(246, 201, 69, .36);
  --medisafe-hover-shadow: 0 18px 42px rgba(8, 38, 66, .16);
}

.site-header {
  background: rgba(255,255,255,.98);
  box-shadow: 0 1px 0 rgba(13,59,102,.08);
}

.header-inner {
  min-height: 72px;
}

.brand img {
  width: 178px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  color: var(--medisafe-blue-deep);
  transform-origin: center;
  transition: color 200ms var(--medisafe-ease), transform 200ms var(--medisafe-ease);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: .22rem;
  height: 2px;
  background: var(--medisafe-blue);
  transition: right 200ms var(--medisafe-ease);
}

.home .primary-nav li:first-child > a::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after {
  right: 0;
}

.button,
.home-service-card,
.equipment-preview-card,
.hero-support-item {
  transform-origin: center;
  transition: transform 200ms var(--medisafe-ease), box-shadow 200ms var(--medisafe-ease), border-color 200ms var(--medisafe-ease), background-color 200ms var(--medisafe-ease), color 200ms var(--medisafe-ease);
}

.button:focus-visible,
.home-service-card:focus-within,
.equipment-preview-card:focus-visible,
.hero-support-item:focus-within,
.primary-nav a:focus-visible,
.footer-grid a:focus-visible {
  outline: 3px solid var(--medisafe-yellow);
  outline-offset: 4px;
  box-shadow: var(--medisafe-focus);
}

.button-outline {
  background: rgba(255,255,255,.88);
  border-color: rgba(13,59,102,.24);
  color: var(--medisafe-blue);
}

.button-cta-ghost {
  border-color: rgba(255,255,255,.65);
  color: var(--medisafe-white);
  background: transparent;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 56%, rgba(13, 59, 102, .08), transparent 18rem),
    linear-gradient(100deg, #f8fbff 0%, #eef7fe 48%, #dbeefb 100%);
  border-bottom: 1px solid rgba(13,59,102,.08);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(30deg, rgba(13,59,102,.08) 1px, transparent 1px),
    linear-gradient(150deg, rgba(13,59,102,.05) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 42%);
}

.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: clamp(420px, 48vw, 560px);
  padding: clamp(3rem, 6vw, 5.5rem) 0 2.1rem;
}

.home-hero-copy {
  max-width: 650px;
  z-index: 1;
}

.home-hero .eyebrow,
.home-section .eyebrow {
  color: #064c9b;
  letter-spacing: .23em;
}

.home-hero h1 {
  color: var(--medisafe-blue-deep);
  font-size: clamp(2.55rem, 4.6vw, 4.7rem);
  line-height: .98;
  max-width: 12ch;
  margin-bottom: 1.3rem;
}

.home-hero p {
  color: #24384c;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  max-width: 56ch;
}

.home-hero-media {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.home-hero-media::before {
  content: "";
  position: absolute;
  inset: 11% -8% -7% 12%;
  background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(13,59,102,.12));
  border-radius: 36% 0 0 36%;
  transform: skewX(-12deg);
}

.home-hero-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 1.15rem;
  box-shadow: 0 24px 60px rgba(8, 38, 66, .18);
}

.home-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-support-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  padding: 0 0 2rem;
}

.hero-support-item {
  display: flex;
  align-items: center;
  gap: .72rem;
  color: var(--medisafe-blue-deep);
  font-weight: 800;
  font-size: .92rem;
  padding: .75rem .95rem;
  border-right: 1px solid rgba(13,59,102,.2);
}

.hero-support-item:last-child {
  border-right: 0;
}

.line-icon,
.service-card-icon,
.home-cta-icon {
  display: inline-grid;
  place-items: center;
  color: var(--medisafe-blue);
  flex: 0 0 auto;
}

.line-icon svg,
.service-card-icon svg,
.home-cta-icon svg {
  width: 1.9rem;
  height: 1.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-section {
  padding: clamp(2.8rem, 5vw, 4.4rem) 0;
}

.home-section-heading-centered {
  max-width: 740px;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.home-section-heading h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.home-service-card {
  position: relative;
  z-index: 0;
  min-height: 178px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.05rem;
  align-items: start;
  background: var(--medisafe-white);
  border: 1px solid rgba(13,59,102,.14);
  border-radius: .8rem;
  box-shadow: 0 8px 26px rgba(8,38,66,.06);
  padding: 1.18rem;
}

.home-service-card .service-card-icon {
  width: 3.7rem;
  height: 3.7rem;
  grid-row: span 3;
  border-radius: 50%;
  background: var(--medisafe-sky);
}

.home-service-card h3 {
  font-size: 1rem;
  margin-bottom: .4rem;
}

.home-service-card p {
  margin: 0 0 .65rem;
  color: #344454;
  font-size: .92rem;
  line-height: 1.45;
}

.home-service-card a,
.home-equipment-link a {
  align-self: end;
  color: var(--medisafe-blue);
  font-weight: 800;
  text-decoration: none;
}

.home-equipment {
  padding-top: 1rem;
}

.equipment-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
}

.equipment-preview-card {
  position: relative;
  z-index: 0;
  display: block;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: var(--medisafe-blue-deep);
  border: 1px solid rgba(13,59,102,.13);
  border-radius: .72rem;
  background: var(--medisafe-white);
  box-shadow: 0 7px 20px rgba(8,38,66,.06);
}

.equipment-preview-image-frame {
  display: block;
  aspect-ratio: 1.65 / 1;
  overflow: hidden;
  background: #f7fafc;
  border-bottom: 1px solid rgba(13,59,102,.08);
}

.equipment-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .55rem;
  transition: transform 210ms var(--medisafe-ease);
}

.equipment-preview-title {
  display: block;
  padding: .6rem .45rem .65rem;
  font-size: .93rem;
  font-weight: 800;
}

.home-equipment-link {
  text-align: center;
  margin: 1.05rem 0 0;
}

.home-cta-band {
  padding: 1.7rem 0 2.1rem;
}

.home-cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  color: var(--medisafe-white);
  background: linear-gradient(135deg, #064c9b, var(--medisafe-blue));
  border-radius: .72rem;
  padding: 1.35rem 2rem;
  box-shadow: 0 18px 46px rgba(8,38,66,.18);
}

.home-cta-icon {
  width: 3.7rem;
  height: 3.7rem;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  color: var(--medisafe-white);
}

.home-cta-inner h2 {
  color: var(--medisafe-white);
  margin-bottom: .25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.home-cta-inner p {
  margin: 0;
  color: #dcedfb;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
}

.site-footer {
  background: #fff;
  color: #24384c;
  border-top: 1px solid rgba(13,59,102,.12);
  padding: 1.65rem 0 1rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--medisafe-blue-deep);
  font-size: .95rem;
  margin-bottom: .75rem;
}

.footer-grid {
  grid-template-columns: 1.45fr .75fr .85fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.footer-brand img {
  width: 165px;
  margin-bottom: .8rem;
}

.site-footer p {
  margin: 0 0 .6rem;
  font-size: .92rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: .36rem;
}

.site-footer a {
  color: var(--medisafe-blue);
  text-decoration: none;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(13,59,102,.12);
  color: var(--medisafe-muted);
  margin-top: 1.25rem;
  padding-top: .8rem;
}

@media (hover: hover) and (pointer: fine) {
  .primary-nav a:hover {
    color: #064c9b;
    transform: translateY(-1px);
  }

  .primary-nav a:hover::after {
    right: 0;
  }

  .button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 14px 30px rgba(8,38,66,.15);
  }

  .button-cta-ghost:hover {
    background: rgba(255,255,255,.13);
    color: var(--medisafe-white);
  }

  .home-service-card:hover,
  .equipment-preview-card:hover {
    z-index: 2;
    transform: translateY(-4px) scale(1.033);
    box-shadow: var(--medisafe-hover-shadow);
    border-color: rgba(13,59,102,.28);
  }

  .equipment-preview-card:hover .equipment-preview-image {
    transform: scale(1.05);
  }

  .hero-support-item:hover .line-icon,
  .service-card-icon:hover,
  .home-cta-icon:hover {
    transform: scale(1.066);
  }
}

/* About-page company-history restoration. */
.about-page-hero .content-narrow {
  max-width: 720px;
}

.about-history-section {
  background:
    radial-gradient(circle at 8% 14%, rgba(210, 235, 252, .5), transparent 18rem),
    linear-gradient(180deg, #fff 0%, #f8fcff 100%);
}

.about-story {
  max-width: 1040px;
}

.about-story-section {
  display: grid;
  grid-template-columns: minmax(14rem, .38fr) minmax(0, .62fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid rgba(6, 31, 79, .13);
}

.about-story-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.about-story-section:last-child {
  padding-bottom: 0;
}

.about-story-heading .eyebrow {
  margin-bottom: .55rem;
  color: var(--medisafe-final-blue);
  letter-spacing: .18em;
}

.about-story-heading h2 {
  margin-bottom: 0;
  color: var(--medisafe-final-navy);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
}

.about-story-copy {
  max-width: 65ch;
}

.about-story-copy p {
  color: #314e71;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.75;
}

.about-story-copy p:last-child {
  margin-bottom: 0;
}

.about-enquiry-section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.about-enquiry-panel {
  max-width: 1040px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--medisafe-final-blue), var(--medisafe-final-navy));
  box-shadow: 0 20px 42px rgba(6, 31, 79, .2);
}

.about-enquiry-panel .eyebrow {
  margin-bottom: .45rem;
}

.about-enquiry-panel h2,
.about-enquiry-panel p {
  color: #fff;
}

.about-enquiry-panel h2 {
  margin-bottom: .45rem;
}

.about-enquiry-panel p:last-child {
  margin-bottom: 0;
}

.about-enquiry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
}

.about-enquiry-panel .button-ghost {
  border-color: rgba(255,255,255,.72);
  color: #fff;
}

@media (max-width: 900px) {
  .about-story-section,
  .about-enquiry-panel {
    grid-template-columns: 1fr;
  }

  .about-story-section {
    gap: 1rem;
  }

  .about-enquiry-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .about-story-heading h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .about-enquiry-actions,
  .about-enquiry-actions .button {
    width: 100%;
  }
}

@media (max-width: 1120px) {
  .home-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .equipment-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 3rem;
  }

  .home-hero-copy {
    order: 1;
  }

  .home-hero-media {
    order: 2;
  }

  .hero-support-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-support-item {
    border-right: 0;
    border-top: 1px solid rgba(13,59,102,.12);
  }

  .home-cta-inner {
    grid-template-columns: 1fr;
  }

  .home-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 154px;
  }

  .header-quote {
    display: none;
  }

  .primary-nav {
    inset: 66px 0 auto;
  }

  .primary-nav a {
    min-height: 2.7rem;
  }

  .home-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .home-service-grid,
  .equipment-preview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card {
    min-height: 0;
  }

  .hero-support-row {
    grid-template-columns: 1fr;
  }

  .home-cta-inner {
    padding: 1.25rem;
  }

  .home-cta-actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .site-shell {
    width: min(100% - 1.25rem, 1180px);
  }

  .home-hero-grid {
    padding-top: 2.25rem;
  }

  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .button:hover,
  .home-service-card:hover,
  .equipment-preview-card:hover,
  .primary-nav a:hover,
  .equipment-preview-card:hover .equipment-preview-image {
    transform: none !important;
  }
}

/* Final visual identity refinement */
:root {
  --medisafe-navy: #062948;
  --medisafe-royal: #064c9b;
  --medisafe-clinical: #f6fbff;
  --medisafe-blue-soft: #dff1fb;
  --medisafe-square-a: rgba(78, 154, 210, .13);
  --medisafe-square-b: rgba(13, 59, 102, .08);
  --medisafe-qrs-light: rgba(6, 76, 155, .105);
  --medisafe-qrs-blue: rgba(255, 255, 255, .22);
}

.identity-section {
  position: relative;
  overflow: hidden;
}

.identity-section > .site-shell,
.identity-section > .home-cta-inner,
.site-footer > .site-shell {
  position: relative;
  z-index: 1;
}

.identity-qrs,
.tile-field {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.qrs-motif {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qrs-light,
.qrs-subtle {
  color: var(--medisafe-qrs-light);
}

.qrs-blue,
.qrs-footer {
  color: var(--medisafe-qrs-blue);
}

.hero-qrs {
  width: min(760px, 58vw);
  height: 132px;
  left: 38%;
  top: 44%;
  opacity: .72;
  transform: translateY(-50%);
}

.section-qrs {
  width: min(720px, 58vw);
  height: 96px;
  right: -6vw;
  top: 1.1rem;
  opacity: .75;
}

.cta-qrs {
  inset: auto 2rem .35rem 21%;
  height: 74px;
  opacity: .65;
}

.footer-qrs {
  width: 58%;
  height: 110px;
  right: 3%;
  top: 1.1rem;
  opacity: .55;
}

.tile-field {
  width: 220px;
  height: 220px;
  opacity: .8;
  background:
    linear-gradient(90deg, var(--medisafe-square-a) 1px, transparent 1px),
    linear-gradient(0deg, var(--medisafe-square-a) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 52%, rgba(255,255,255,.46) 52% 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  mask-image: radial-gradient(circle at center, #000 0 48%, transparent 74%);
}

.tile-field-hero-left {
  left: -76px;
  top: 110px;
}

.tile-field-hero-right {
  right: -68px;
  bottom: 18px;
  opacity: .65;
}

.tile-field-equipment {
  left: -80px;
  top: 14%;
  opacity: .45;
}

.tile-field-cta {
  right: -62px;
  top: -54px;
  opacity: .36;
  filter: brightness(1.4);
}

.tile-field-footer {
  left: -70px;
  bottom: -80px;
  opacity: .28;
  filter: brightness(1.35);
}

.site-header {
  border-bottom: 1px solid rgba(13, 59, 102, .1);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 76, 155, .32), transparent);
  pointer-events: none;
}

.header-inner {
  min-height: 70px;
}

.primary-nav ul {
  gap: clamp(.7rem, 1.4vw, 1.18rem);
}

.primary-nav a {
  font-size: .94rem;
  letter-spacing: -.01em;
}

.header-quote {
  padding-inline: 1.35rem;
  box-shadow: 0 8px 20px rgba(246, 201, 69, .28);
}

.home-hero {
  background:
    radial-gradient(circle at 74% 38%, rgba(255, 255, 255, .86), transparent 22rem),
    linear-gradient(110deg, #fbfdff 0%, #eff8fe 52%, #dff1fb 100%);
}

.home-hero::before {
  opacity: .42;
  background-image:
    linear-gradient(30deg, rgba(6,76,155,.09) 1px, transparent 1px),
    linear-gradient(150deg, rgba(13,59,102,.045) 1px, transparent 1px);
  background-size: 88px 88px;
}

.home-hero-grid {
  min-height: clamp(470px, 47vw, 590px);
  padding-top: clamp(3.5rem, 6.4vw, 5.7rem);
  padding-bottom: 2rem;
}

.home-hero h1 {
  color: #072b49;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.home-hero p {
  color: #263f56;
}

.home-hero-media::before {
  inset: 7% -11% -10% 18%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(110,177,221,.18)),
    repeating-linear-gradient(90deg, rgba(13,59,102,.06) 0 1px, transparent 1px 34px);
  border-radius: 45% 0 0 45%;
}

.home-hero-image-wrap {
  border: 1px solid rgba(255,255,255,.72);
  box-shadow:
    0 24px 68px rgba(8,38,66,.18),
    0 0 0 10px rgba(255,255,255,.36);
}

.hero-support-row {
  border-top: 1px solid rgba(13, 59, 102, .09);
  padding-top: .85rem;
}

.hero-support-item {
  border-right-color: rgba(13,59,102,.12);
  border-radius: .65rem;
}

.line-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 0 0 1px rgba(6,76,155,.12);
}

.home-services {
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.home-service-grid-image {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.home-service-card-image {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(13,59,102,.1);
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(8,38,66,.07);
  background: #fff;
}

.home-service-card-image .service-image-wrap {
  width: 100%;
  margin: 0;
  border-bottom: 1px solid rgba(13,59,102,.08);
}

.home-service-card-image .service-image {
  transition: transform 210ms var(--medisafe-ease), filter 210ms var(--medisafe-ease);
}

.home-service-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.05rem 1.08rem 1.12rem;
}

.home-service-content h3 {
  margin-bottom: .45rem;
}

.home-service-content p {
  flex: 1;
}

.home-equipment {
  background:
    radial-gradient(circle at 88% 0%, rgba(223,241,251,.7), transparent 18rem),
    linear-gradient(180deg, #fff, #f8fcff);
}

.equipment-preview-card {
  border-color: rgba(13,59,102,.11);
  border-radius: .9rem;
}

.equipment-preview-image-frame {
  background:
    linear-gradient(180deg, #fff, #f5faff);
}

.home-cta-band {
  padding: 2rem 0 2.45rem;
  background: linear-gradient(180deg, #f8fcff 0%, #fff 100%);
}

.home-cta-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 6% 36%, rgba(246,201,69,.18), transparent 16rem),
    linear-gradient(135deg, #06365f 0%, #064c9b 58%, #0d3b66 100%);
  box-shadow: 0 22px 54px rgba(8,38,66,.22);
}

.home-cta-copy,
.home-cta-actions,
.home-cta-icon {
  position: relative;
  z-index: 1;
}

.site-footer {
  color: #dbeaf6;
  background:
    radial-gradient(circle at 88% 12%, rgba(65,145,202,.22), transparent 18rem),
    linear-gradient(135deg, #061f36 0%, #082642 50%, #06365f 100%);
  border-top: 0;
  padding-top: 2.45rem;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer p {
  color: #dbeaf6;
}

.site-footer a {
  color: #fff;
}

.footer-brand img {
  width: 172px;
  padding: .25rem .35rem;
  background: rgba(255,255,255,.92);
  border-radius: .35rem;
}

.footer-bottom {
  border-top-color: rgba(255,255,255,.18);
  color: #bdd7e9;
}

.footer-bottom p {
  color: #bdd7e9;
}

.site-footer .footer-credit {
  margin: .15rem 0 0;
  font-size: .68rem;
  line-height: 1.4;
  opacity: .72;
}

.site-footer .footer-credit a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

.button:focus-visible,
.home-service-card:focus-within,
.equipment-preview-card:focus-visible,
.hero-support-item:focus-within,
.primary-nav a:focus-visible,
.footer-grid a:focus-visible,
.home-equipment-link a:focus-visible {
  outline: 3px solid var(--medisafe-yellow);
  outline-offset: 4px;
  box-shadow: var(--medisafe-focus), 0 10px 26px rgba(8,38,66,.12);
}

@media (hover: hover) and (pointer: fine) {
  .home-service-card-image:hover .service-image {
    transform: scale(1.045);
    filter: saturate(1.04);
  }

  .equipment-preview-card:hover .equipment-preview-image {
    transform: scale(1.05);
  }

  .home-equipment-link a:hover,
  .home-service-card a:hover {
    color: #043d7e;
  }
}

@media (max-width: 1120px) {
  .home-service-grid-image {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-qrs {
    width: 92vw;
    left: 10%;
    top: 34%;
    opacity: .38;
  }

  .tile-field-hero-right {
    display: none;
  }
}

@media (max-width: 700px) {
  .home-service-grid-image {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    gap: 1.65rem;
  }

  .hero-support-row {
    padding-top: .35rem;
  }

  .hero-support-item {
    padding-inline: .2rem;
  }

  .tile-field {
    width: 150px;
    height: 150px;
    opacity: .28;
  }

  .hero-qrs,
  .section-qrs,
  .footer-qrs {
    opacity: .22;
  }

  .site-footer {
    padding-top: 2rem;
  }
}

@media (max-width: 420px) {
  .home-hero h1 {
    max-width: 11ch;
  }

  .home-hero-media::before {
    inset: 16% -16% -14% 18%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-card-image:hover .service-image,
  .equipment-preview-card:hover .equipment-preview-image,
  .button:hover,
  .home-service-card:hover,
  .equipment-preview-card:hover,
  .primary-nav a:hover {
    transform: none !important;
  }
}

/* Final private client-review mockup implementation */
:root {
  --medisafe-final-navy: #061f4f;
  --medisafe-final-blue: #004da8;
  --medisafe-final-blue-bright: #0d6ed4;
  --medisafe-final-yellow: #ffc928;
  --medisafe-final-ice: #f3f9ff;
  --medisafe-final-line: rgba(0, 77, 168, .18);
  --medisafe-tile-a: rgba(58, 148, 218, .24);
  --medisafe-tile-b: rgba(149, 202, 239, .19);
  --medisafe-tile-c: rgba(5, 82, 165, .12);
}

.site-header.identity-section {
  overflow: hidden;
}

.header-inner {
  min-height: 5.05rem;
  align-items: center;
  gap: 1.7rem;
}

.brand img {
  width: min(240px, 48vw);
  max-height: 58px;
  object-fit: contain;
}

.header-qrs {
  position: absolute;
  top: 1.6rem;
  width: 11rem;
  height: 3.2rem;
  color: rgba(22, 120, 205, .16);
  z-index: 0;
}

.header-qrs-left {
  left: 1.2rem;
}

.header-qrs-right {
  right: 1.2rem;
  transform: scaleX(-1);
}

.header-inner > * {
  position: relative;
  z-index: 1;
}

.primary-nav .menu {
  gap: clamp(1rem, 2vw, 2.05rem);
}

.primary-nav a {
  color: var(--medisafe-final-navy);
  font-weight: 800;
  font-size: .88rem;
  white-space: nowrap;
}

.brand,
.header-quote,
.primary-nav .menu > li {
  flex: 0 0 auto;
}

.primary-nav {
  min-width: 0;
}

.primary-nav .mobile-nav-quote {
  display: none;
}

.primary-nav .mobile-nav-quote::after {
  display: none;
}

.header-quote {
  white-space: nowrap;
  background: var(--medisafe-final-blue);
  color: #fff;
  box-shadow: 0 14px 26px rgba(0, 77, 168, .24);
}

.home-hero {
  min-height: 26rem;
  padding: clamp(1.7rem, 3.4vw, 3rem) 0 1.8rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.95) 36%, rgba(241,248,255,.76) 59%, rgba(232,244,255,.62) 100%),
    radial-gradient(circle at 78% 20%, rgba(80, 159, 222, .25), transparent 30rem),
    linear-gradient(180deg, #fff, #eef8ff);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 92, 178, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 92, 178, .055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  pointer-events: none;
  z-index: 0;
}

.home-hero-grid {
  grid-template-columns: minmax(32rem, .98fr) minmax(25rem, 1.04fr);
  align-items: center;
  min-height: 22rem;
  padding-block: clamp(1.2rem, 2vw, 1.8rem);
  position: relative;
  z-index: 2;
}

.home-hero-copy {
  max-width: 42rem;
}

.home-hero h1 {
  max-width: 39rem;
  color: var(--medisafe-final-navy);
  font-size: clamp(2.55rem, 4.15vw, 3.72rem);
  line-height: .99;
  letter-spacing: -.058em;
}

.home-hero p {
  max-width: 33rem;
  color: #243b63;
  font-size: clamp(1.02rem, 1.55vw, 1.24rem);
}

.home-hero-media {
  align-self: stretch;
  display: flex;
  align-items: center;
  min-height: 22rem;
}

.home-hero-image-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: 720px;
  transform: translateX(.6rem);
}

.home-hero-image {
  border-radius: 1.2rem;
  filter: drop-shadow(0 28px 38px rgba(6, 31, 79, .18));
}

.hero-qrs-lower {
  left: 37%;
  right: auto;
  bottom: 1.1rem;
  top: auto;
  width: min(35rem, 46vw);
  height: 5.5rem;
  color: rgba(16, 119, 211, .24);
  z-index: 2;
}

.tile-field {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.52) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.52) 1px, transparent 1px),
    linear-gradient(135deg, var(--medisafe-tile-a), var(--medisafe-tile-b) 52%, transparent 53%),
    linear-gradient(45deg, transparent 0 28%, var(--medisafe-tile-c) 29% 54%, transparent 55%);
  background-size: 26px 26px, 26px 26px, 78px 78px, 104px 104px;
  opacity: .78;
}

.tile-field-hero-left,
.tile-field-hero-right {
  top: 0;
  bottom: 0;
  width: clamp(4.8rem, 8vw, 7.2rem);
  height: auto;
  border-radius: 0;
  filter: none;
}

.tile-field-hero-left {
  left: 0;
  transform: none;
  mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}

.tile-field-hero-right {
  right: 0;
  transform: none;
  mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
}

.review-claims-strip {
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid rgba(0, 77, 168, .12);
  border-bottom: 1px solid rgba(0, 77, 168, .12);
  box-shadow: 0 18px 42px rgba(6, 31, 79, .08);
}

.review-claims-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: center;
}

.review-claim-card {
  min-height: 5.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  border-right: 1px solid rgba(6, 31, 79, .15);
}

.review-claim-card:last-child {
  border-right: 0;
}

.review-claim-card h2 {
  margin: 0;
  color: var(--medisafe-final-navy);
  font-size: clamp(.92rem, 1vw, 1.08rem);
  line-height: 1.12;
}

.review-claim-card p {
  margin: .28rem 0 0;
  color: #315174;
  font-size: .82rem;
  line-height: 1.25;
}

.claim-mark {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  color: var(--medisafe-final-blue);
  border: 2px solid rgba(0, 77, 168, .22);
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.05em;
  background: #fff;
}

.claim-mark svg,
.compliance-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-page-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.8rem);
}

.service-page-media {
  overflow: hidden;
  border: 1px solid rgba(0, 77, 168, .13);
  border-radius: 1.15rem;
  box-shadow: var(--medisafe-shadow);
}

.service-page-media .service-image-wrap {
  margin: 0;
}

.service-page-layout h2 + p {
  margin-top: .4rem;
}

.compliance-section {
  border-bottom: 1px solid rgba(0, 77, 168, .11);
}

.compliance-layout {
  display: grid;
  grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.compliance-heading h2 {
  margin-top: .45rem;
}

.compliance-icon,
.compliance-type-mark {
  display: inline-grid;
  place-items: center;
  width: 3.7rem;
  height: 3.7rem;
  margin-bottom: 1rem;
  border: 2px solid rgba(0, 77, 168, .23);
  border-radius: 50%;
  background: #fff;
  color: var(--medisafe-blue);
  box-shadow: 0 12px 28px rgba(6, 31, 79, .08);
}

.compliance-type-mark {
  font-weight: 900;
  letter-spacing: .045em;
}

.claim-context {
  border-left: 4px solid var(--medisafe-yellow);
  padding: .8rem 1rem;
  background: rgba(255, 249, 228, .72);
  color: var(--medisafe-blue-deep);
  font-weight: 700;
}

.compliance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem 1.5rem;
  padding-left: 1.2rem;
}

.compliance-cta .two-column {
  align-items: center;
}

.standards-page-hero h1 {
  max-width: 16ch;
  margin-bottom: 0;
}

.standards-section {
  border-bottom: 1px solid rgba(0, 77, 168, .11);
}

.standards-feature-layout {
  display: grid;
  grid-template-columns: minmax(17rem, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.standards-insurance-media {
  overflow: hidden;
  border: 1px solid rgba(0, 77, 168, .13);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: var(--medisafe-shadow);
}

.standards-insurance-media .service-image-wrap {
  aspect-ratio: 960 / 965;
  margin: 0;
  background: #fff;
}

.standards-insurance-media .service-image {
  object-fit: contain;
}

.standards-copy {
  color: #344454;
}

.standards-copy h2 {
  margin-bottom: 1rem;
  color: var(--medisafe-blue-deep);
}

.standards-copy p:last-child,
.standards-list:last-child {
  margin-bottom: 0;
}

.standards-copy-wide {
  max-width: 880px;
}

.standards-list {
  display: grid;
  gap: .7rem;
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.35rem;
}

.standards-list li::marker {
  color: var(--medisafe-blue);
}

.standards-quote-cta {
  padding-block: clamp(2.4rem, 5vw, 4rem);
  background: var(--medisafe-blue-deep);
  text-align: center;
}

.standards-quote-cta .button {
  min-width: min(15rem, 100%);
}

.claim-mark svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.admin-review-note {
  margin: 0 0 1rem;
  padding: .72rem .95rem;
  color: #5f4200;
  background: #fff3c9;
  border: 1px solid rgba(181, 128, 0, .25);
  border-radius: .85rem;
  font-size: .9rem;
}

.home-services {
  padding: clamp(2.5rem, 4.6vw, 4.35rem) 0 clamp(2.4rem, 4.8vw, 4.7rem);
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f8fcff);
}

.home-section-heading-centered .eyebrow {
  color: var(--medisafe-final-blue);
  letter-spacing: .32em;
}

.home-section-heading-centered h2 {
  color: var(--medisafe-final-navy);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
}

.tile-field-services-left,
.tile-field-services-right {
  top: 2rem;
  bottom: 1rem;
  width: clamp(4.5rem, 7vw, 6.4rem);
  height: auto;
  border-radius: 0;
  opacity: .55;
}

.tile-field-services-left {
  left: 0;
  mask-image: linear-gradient(90deg, #000, transparent);
}

.tile-field-services-right {
  right: 0;
  mask-image: linear-gradient(270deg, #000, transparent);
}

.section-qrs {
  top: 1.1rem;
  left: 50%;
  width: min(22rem, 44vw);
  height: 3.6rem;
  color: rgba(0, 77, 168, .16);
  transform: translateX(-50%);
}

.home-service-grid-image {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-service-card-image {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(0, 77, 168, .1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 16px 34px rgba(6, 31, 79, .1);
}

.home-service-card-image .service-image-wrap {
  aspect-ratio: 1.72 / 1;
}

.home-service-content {
  padding: 1.2rem 1.24rem 1.28rem;
}

.home-service-content h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--medisafe-final-navy);
}

.home-service-content h3::before {
  content: "";
  width: 1.95rem;
  height: 1.95rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 23%, transparent 24%),
    linear-gradient(135deg, var(--medisafe-final-blue), #0e76d9);
  box-shadow: 0 6px 13px rgba(0, 77, 168, .24);
}

.home-service-content p {
  min-height: 5.4rem;
  color: #314e71;
  font-size: .96rem;
}

.home-service-content a {
  color: var(--medisafe-final-blue);
  font-weight: 900;
}

.home-cta-band {
  max-width: min(1030px, calc(100% - 2rem));
  margin: .8rem auto .35rem;
  border-radius: .62rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 2rem 50%, rgba(255,255,255,.18), transparent 4rem),
    linear-gradient(135deg, #004fb1, #003b93 58%, #012a6a);
  box-shadow: 0 22px 44px rgba(0, 61, 150, .25);
}

.home-cta-inner {
  grid-template-columns: auto 1fr auto;
  min-height: 5.4rem;
  padding: 1.05rem clamp(1.2rem, 3vw, 2.6rem);
}

.home-cta-copy h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.home-cta-copy p {
  margin-top: .2rem;
}

.home-cta-icon {
  width: 4.35rem;
  height: 4.35rem;
  color: var(--medisafe-final-blue);
  background: #fff;
  box-shadow: inset 0 0 0 8px rgba(0, 77, 168, .05), 0 14px 24px rgba(0, 29, 83, .2);
}

.phone-button {
  border-color: rgba(255,255,255,.72);
  color: #fff;
  min-width: 10rem;
}

.cta-qrs {
  left: auto;
  right: 1rem;
  bottom: -.45rem;
  width: min(31rem, 42vw);
  height: 4.6rem;
  color: rgba(166, 213, 255, .35);
}

.site-footer {
  margin-top: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #004da8 0%, #003a8d 52%, #06245a 100%);
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 9rem;
  height: 9rem;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.17) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.17) 1px, transparent 1px),
    linear-gradient(135deg, rgba(85,174,246,.36), rgba(0,40,108,.02));
  background-size: 23px 23px, 23px 23px, 69px 69px;
  pointer-events: none;
}

.site-footer::before {
  left: 0;
  mask-image: linear-gradient(45deg, #000, transparent 72%);
}

.site-footer::after {
  right: 0;
  mask-image: linear-gradient(315deg, #000, transparent 72%);
}

.footer-grid {
  grid-template-columns: 1.25fr repeat(3, .8fr);
  padding-top: 2.25rem;
  padding-bottom: 1.5rem;
}

.footer-brand img {
  max-width: 190px;
  background: rgba(255,255,255,.06);
  border-radius: .4rem;
}

.footer-qrs {
  left: 53%;
  bottom: 1.6rem;
  width: min(28rem, 38vw);
  height: 4.4rem;
  color: rgba(178, 219, 255, .27);
  transform: translateX(-50%);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

@media (hover: hover) and (pointer: fine) {
  .review-claim-card:hover,
  .resource-grid .card:hover {
    transform: translateY(-4px) scale(1.033);
    box-shadow: 0 22px 44px rgba(6, 31, 79, .15);
  }

  .review-claim-card:hover .claim-mark {
    transform: scale(1.066);
  }
}

.review-claim-card,
.resource-grid .card,
.claim-mark {
  transition: transform 205ms cubic-bezier(.2,.72,.2,1), box-shadow 205ms cubic-bezier(.2,.72,.2,1);
  transform-origin: center;
}

.review-claim-card:focus-within,
.resource-grid .card:focus-within {
  outline: 3px solid rgba(255, 201, 40, .9);
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .home-service-grid-image {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-claims-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-claim-card {
    border-bottom: 1px solid rgba(6, 31, 79, .12);
  }
}

@media (max-width: 900px) {
  .header-qrs {
    opacity: .45;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .service-page-layout,
  .compliance-layout,
  .standards-feature-layout {
    grid-template-columns: 1fr;
  }

  .standards-insurance-media {
    width: min(34rem, 100%);
  }

  .home-hero-media {
    min-height: auto;
  }

  .home-hero-image-wrap {
    transform: none;
  }

  .hero-qrs-lower {
    left: 20%;
    bottom: .6rem;
    width: 70vw;
  }

  .home-cta-inner {
    grid-template-columns: 1fr;
  }

  .home-cta-icon {
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 4.6rem;
  }

  .header-qrs {
    display: none;
  }

  .brand img {
    width: min(190px, 52vw);
  }

  .home-hero {
    padding-top: 2.8rem;
  }

  .home-hero h1 {
    font-size: clamp(2.28rem, 12vw, 3.25rem);
  }

  .tile-field-hero-left,
  .tile-field-hero-right,
  .tile-field-services-left,
  .tile-field-services-right {
    opacity: .24;
    width: 3.2rem;
  }

  .tile-field-hero-right,
  .tile-field-services-right {
    display: none;
  }

  .review-claims-grid,
  .home-service-grid-image,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .compliance-list {
    grid-template-columns: 1fr;
  }

  .review-claim-card {
    min-height: auto;
    border-right: 0;
  }

  .home-service-content p {
    min-height: 0;
  }

  .home-cta-band {
    max-width: calc(100% - 1rem);
  }

  .phone-button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-claim-card,
  .resource-grid .card,
  .claim-mark {
    transition-duration: .01ms;
  }

  .review-claim-card:hover,
  .resource-grid .card:hover,
  .review-claim-card:hover .claim-mark {
    transform: none;
  }
}

/* Richard feedback pass 1 */
.home-service-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.home-service-grid-three .home-service-content {
  height: 100%;
}

.service-check-list {
  flex: 1;
  display: block;
  margin: 0 0 1.05rem;
  padding: 0;
  list-style: none;
}

.service-check-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  margin: 0;
  color: #314e71;
  font-size: .92rem;
  line-height: 1.48;
}

.service-check-item + .service-check-item {
  margin-top: 18px;
}

.medisafe-check-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  overflow: visible;
  margin-top: 1px;
  shape-rendering: geometricPrecision;
}

.medisafe-check-icon__box {
  fill: none;
  stroke: var(--medisafe-final-blue, #0057b8);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.medisafe-check-icon__tick {
  fill: none;
  stroke: var(--medisafe-yellow, #f6c431);
  stroke-width: 4.25;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.service-check-list strong {
  color: var(--medisafe-final-navy);
}

.home-service-content > a {
  align-self: flex-start;
  margin-top: auto;
}

.home-service-content > a:focus-visible {
  outline: 3px solid var(--medisafe-yellow);
  outline-offset: 4px;
  border-radius: .15rem;
}

.home-promo-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.75rem, 2.2vw, 2.2rem) 0;
  background: #073f82;
}

.home-promo-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 32, 78, .54), rgba(0, 68, 151, .32), rgba(3, 32, 78, .58));
  pointer-events: none;
}

.home-promo-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
}

.home-promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-promo-inner {
  position: relative;
  z-index: 1;
}

.promo-callout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(1.25rem, 3.5vw, 3.5rem);
  width: min(100%, 1080px);
  margin-inline: auto;
}

.promo-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(12rem, 18vw, 14.25rem);
  aspect-ratio: 1;
  padding: 1rem;
  border: 3px solid rgba(255, 255, 255, .96);
  border-radius: 50%;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 26, 68, .7);
  background: rgba(0, 48, 112, .28);
  box-shadow: 0 16px 36px rgba(0, 25, 67, .24), inset 0 0 0 1px rgba(255, 255, 255, .2);
  backdrop-filter: blur(1.5px);
}

.promo-callout-kicker {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.promo-callout-value {
  display: block;
  margin: .14rem 0 .08rem;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: .98;
  letter-spacing: -.05em;
  white-space: nowrap;
}

.promo-callout-support {
  max-width: 10.8rem;
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  font-weight: 850;
  line-height: 1.14;
}

.promo-callout-icon {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 3.25rem;
  margin-bottom: .45rem;
}

.promo-callout-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-page-layout .content-narrow > p {
  margin-bottom: 1rem;
}

/* Final client-notes completion: navigation, service heading and content imagery. */
.header-inner {
  gap: clamp(1rem, 1.6vw, 1.35rem);
}

.primary-nav .menu {
  gap: clamp(.8rem, 1.25vw, 1.35rem);
}

.primary-nav a[aria-current="page"]::after {
  right: 0;
}

.home-services .home-section-heading-centered {
  max-width: none;
}

.home-services .home-section-heading-centered .eyebrow {
  margin-bottom: .65rem;
  color: var(--medisafe-final-blue);
  font-size: clamp(1.125rem, 1.35vw, 1.1875rem);
  font-weight: 800;
  letter-spacing: .18em;
}

.home-services .home-section-heading-centered h2 {
  color: var(--medisafe-final-navy);
  font-size: clamp(2.125rem, 2.8vw, 2.375rem);
  line-height: 1.14;
}

.customer-support-page-layout {
  grid-template-columns: minmax(0, .46fr) minmax(0, .54fr);
  gap: clamp(2.25rem, 4vw, 3.75rem);
}

.customer-support-page-media .service-image-wrap {
  aspect-ratio: 960 / 965;
}

.home-service-card-image .service-image,
.customer-support-page-media .service-image {
  transition: transform 400ms ease-out, filter 400ms ease-out;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .home-service-card-image:hover {
    transform: translateY(-4px);
  }

  .home-service-card-image:hover .service-image,
  .customer-support-page-media:hover .service-image {
    transform: scale(1.06);
    filter: saturate(1.04);
  }
}

@media (max-width: 1500px) and (min-width: 1121px) {
  .header-inner {
    gap: .9rem;
  }

  .brand img {
    width: 210px;
  }

  .primary-nav .menu {
    gap: .65rem;
  }

  .primary-nav a {
    font-size: .84rem;
    letter-spacing: -.015em;
  }

  .header-quote {
    padding-inline: 1rem;
  }
}

@media (max-width: 1120px) {
  .site-header.identity-section {
    overflow: visible;
  }

  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    position: absolute;
    inset: 68px 0 auto;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 1rem;
    border-bottom: 1px solid var(--medisafe-line);
    background: var(--medisafe-white);
    box-shadow: 0 18px 34px rgba(6, 31, 79, .12);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-quote {
    display: none;
  }

  .primary-nav .mobile-nav-quote {
    display: inline-flex;
    margin-top: 1rem;
  }
}

@media (max-width: 900px) {
  .customer-support-page-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .customer-support-page-media {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .home-services .home-section-heading-centered .eyebrow {
    font-size: 1rem;
    letter-spacing: .15em;
  }

  .home-services .home-section-heading-centered h2 {
    font-size: clamp(1.75rem, 8vw, 2.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-card-image:hover,
  .home-service-card-image:hover .service-image,
  .customer-support-page-media:hover .service-image {
    transform: none !important;
  }
}

@media (max-width: 1120px) {
  .home-service-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    position: absolute;
    inset: 68px 0 auto;
    padding: 1rem;
    border-bottom: 1px solid var(--medisafe-line);
    background: var(--medisafe-white);
    box-shadow: 0 18px 34px rgba(6, 31, 79, .12);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-quote {
    display: none;
  }

  .home-hero h1 {
    max-width: 15ch;
    font-size: clamp(2.55rem, 7vw, 3.25rem);
  }

  .promo-callout-grid {
    gap: .9rem;
  }

  .promo-callout {
    width: clamp(11.5rem, 28vw, 12.6rem);
  }
}

@media (max-width: 700px) {
  .home-service-grid-three,
  .promo-callout-grid {
    grid-template-columns: 1fr;
  }

  .home-promo-banner {
    padding-block: 1rem;
  }

  .promo-callout {
    width: min(12.5rem, 70vw);
  }

  .promo-callout-grid {
    gap: .65rem;
  }
}

/* Service-card and pre-footer visual refinement */
.home-services {
  padding-bottom: 0;
}

.home-service-content h3 {
  position: relative;
  display: block;
  min-height: 3.55rem;
  margin: 0 0 .75rem;
  padding: 0;
  color: var(--medisafe-final-navy);
  font-size: clamp(1.28rem, 1.65vw, 1.48rem);
  font-weight: 900;
  line-height: 1.18;
}

.home-service-content h3::before {
  display: none;
}

.home-services + .review-claims-strip {
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  overflow: hidden;
  border: 1px solid rgba(0, 77, 168, .14);
  border-radius: 1rem;
  background: #fff;
  box-shadow: none;
}

.home-services + .review-claims-strip > .site-shell {
  width: 100%;
}

.home-services + .review-claims-strip .review-claims-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-services + .review-claims-strip .review-claim-card {
  border-bottom: 0;
}

.home-promo-banner {
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(2rem, 4vw, 3rem) auto;
  border-radius: 1rem;
}

.footer-cta-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  padding-top: .1rem;
  padding-bottom: clamp(1.4rem, 2.8vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
}

.footer-cta-row .home-cta-icon {
  width: 3.75rem;
  height: 3.75rem;
  border: 2px solid rgba(255, 255, 255, .78);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}

.footer-cta-row .home-cta-copy h2 {
  margin: 0 0 .18rem;
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.footer-cta-row .home-cta-copy p {
  max-width: 48rem;
  margin: 0;
  color: #dbeaf6;
}

.footer-cta-row .home-cta-actions {
  align-items: center;
}

.footer-cta-row .phone-button {
  border-color: rgba(255, 255, 255, .72);
  color: #fff;
}

.footer-cta-row .button-primary {
  border-color: var(--medisafe-yellow);
}

.footer-grid {
  padding-top: 1.75rem;
}

@media (max-width: 900px) {
  .footer-cta-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .footer-cta-row .home-cta-icon {
    margin-inline: 0;
  }

  .footer-cta-row .home-cta-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .home-services + .review-claims-strip {
    width: calc(100% - 1.25rem);
    margin-top: 1.5rem;
    border-radius: .8rem;
  }

  .home-services + .review-claims-strip .review-claims-grid {
    grid-template-columns: 1fr;
  }

  .home-services + .review-claims-strip .review-claim-card {
    border-right: 0;
    border-bottom: 1px solid rgba(6, 31, 79, .12);
  }

  .home-services + .review-claims-strip .review-claim-card:last-child {
    border-bottom: 0;
  }

  .home-promo-banner {
    width: calc(100% - 1.25rem);
    margin: 1.5rem auto;
    border-radius: .8rem;
  }

  .footer-cta-row {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-bottom: 1.4rem;
    text-align: center;
  }

  .footer-cta-row .home-cta-icon {
    margin-inline: auto;
  }

  .footer-cta-row .home-cta-actions {
    grid-column: auto;
    width: 100%;
    justify-content: center;
  }

  .footer-cta-row .home-cta-actions .button {
    width: 100%;
  }
}
