/* Care Consulting — premium static theme */

:root {
  --navy: #12324a;
  --navy-deep: #0c2234;
  --teal: #008c8c;
  --teal-dark: #006b6b;
  --teal-light: #e6f7f7;
  --cerise: #d92c7b;
  --cerise-dark: #b32466;
  --cerise-soft: #fce8f1;
  --white: #ffffff;
  --off-white: #fafbfc;
  --grey-50: #f7f9fa;
  --grey-100: #eef2f5;
  --grey-200: #d8e2ea;
  --text: #1f2933;
  --text-muted: #64748b;
  --container: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(18, 50, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(18, 50, 74, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 107, 107, 0.08);
  --ease: 0.25s ease;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  /* Background images — add WebP files to assets/images/backgrounds/ */
  --bg-hero: url("/assets/images/backgrounds/hero-pharmacy-consulting.webp");
  --bg-compliance: url("/assets/images/backgrounds/compliance-documents.webp");
  --bg-retail: url("/assets/images/backgrounds/retail-pharmacy-shelves.webp");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--ease);
}

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

a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--ease), border-color var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--grey-200);
  box-shadow: 0 4px 24px rgba(18, 50, 74, 0.07);
}

.navbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand img {
  max-height: 64px;
  width: auto;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-menu a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-menu a:not(.nav-cta):hover {
  color: var(--teal);
  text-decoration: none;
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem !important;
  box-shadow: 0 4px 16px rgba(0, 140, 140, 0.25);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.nav-cta:hover {
  background: var(--teal-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 107, 107, 0.3);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* ── Hero ── */

.hero {
  padding: 5rem 0 4.5rem;
}

/* ── Parallax backgrounds (image layer moves; overlay + content stay fixed) ── */

.parallax-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.parallax-bg::before {
  content: "";
  position: absolute;
  inset: -12%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
  z-index: -2;
}

.parallax-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.parallax-bg > .container {
  position: relative;
  z-index: 1;
}

.parallax-bg--hero {
  --bg-image: var(--bg-hero);
  background-color: var(--teal-light);
}

.parallax-bg--hero::before {
  background-position: right center;
}

.parallax-bg--hero::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 140, 140, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(18, 50, 74, 0.03) 1px, transparent 1px),
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 38%,
      rgba(230, 247, 247, 0.82) 58%,
      rgba(230, 247, 247, 0.45) 100%
    );
  background-size: 48px 48px, 48px 48px, cover;
  opacity: 1;
}

.parallax-bg--dark {
  --bg-image: var(--bg-compliance);
}

.parallax-bg--dark::after {
  background: linear-gradient(
    135deg,
    rgba(12, 34, 52, 0.93) 0%,
    rgba(0, 107, 107, 0.88) 100%
  );
}

.parallax-bg--light {
  --bg-image: var(--bg-retail);
}

.parallax-bg--light::before {
  background-position: center right;
}

.parallax-bg--light::after {
  background: linear-gradient(
    180deg,
    rgba(247, 249, 250, 0.94) 0%,
    rgba(255, 255, 255, 0.88) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--white);
  border: 1px solid rgba(0, 140, 140, 0.2);
  border-radius: 999px;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.hero-lead,
.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 4px 18px rgba(0, 140, 140, 0.28);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 107, 107, 0.32);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--grey-200);
}

.btn-secondary:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
}

/* Hero readiness dashboard card */

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.readiness-card {
  width: 100%;
  max-width: 380px;
  padding: 1.75rem 1.65rem 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--cerise);
}

.readiness-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cerise-dark);
  background: var(--cerise-soft);
  border-radius: 999px;
}

.readiness-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1.15rem;
  line-height: 1.3;
}

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

.readiness-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
}

.readiness-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--teal-light);
  border: 1px solid rgba(0, 140, 140, 0.2);
  border-radius: 6px;
  position: relative;
}

.readiness-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid var(--teal);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.readiness-foot {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-200);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  font-style: italic;
}

.hero-enter {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.hero-enter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Sections ── */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--grey-50);
}

.section-intro {
  background: var(--white);
  text-align: center;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* Service cards */

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

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 140, 140, 0.25);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--teal);
  background: var(--teal-light);
  border-radius: 10px;
  flex-shrink: 0;
}

.service-icon i {
  display: block;
  width: 1em;
  text-align: center;
}

.service-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Timeline / Process */

.timeline {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  padding-left: 0;
  margin-left: 0;
  padding-inline-start: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

.timeline li::marker,
.timeline-step::marker {
  content: "";
  display: none;
}

.timeline-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 140, 140, 0.3);
}

.timeline-body {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  flex: 1;
}

.timeline-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Split panels */

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-panel--reverse {
  direction: rtl;
}

.split-panel--reverse > * {
  direction: ltr;
}

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

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 500;
  color: var(--navy);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.feature-card--accent {
  border-left-color: var(--cerise);
  background: linear-gradient(135deg, var(--white), var(--cerise-soft));
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

.feature-card--inline {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}

.retail-highlight-card {
  background: linear-gradient(135deg, rgba(217, 44, 123, 0.1), rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(217, 44, 123, 0.2);
  border-left: 5px solid var(--cerise);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  box-shadow: none;
}

.retail-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--cerise);
  background: rgba(217, 44, 123, 0.12);
  border-radius: 10px;
}

.retail-highlight-card h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.retail-highlight-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Background image sections ── */

/* Registration & Compliance band */
.section-band--compliance {
  padding: 5.5rem 0;
  color: rgba(255, 255, 255, 0.92);
  background-color: var(--navy-deep);
}

.section-band--compliance h2 {
  color: var(--white);
}

.section-band--compliance h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), rgba(255, 255, 255, 0.5));
}

.section-band--compliance p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-band--compliance .check-list li {
  color: rgba(255, 255, 255, 0.92);
}

.section-band--compliance .check-list li::before {
  background: var(--teal-light);
  box-shadow: 0 0 0 2px rgba(0, 140, 140, 0.4);
}

/* Retail Merchandising — soft image panel */
.section-visual--retail {
  padding: 5rem 0;
  background-color: var(--grey-50);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* CTA */

.section-cta {
  background: var(--grey-50);
  padding: 4.5rem 0 3rem;
}

.cta-panel {
  text-align: center;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-panel p {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.cta-panel .btn-primary {
  background: var(--cerise);
  border-color: var(--cerise);
  box-shadow: 0 4px 20px rgba(217, 44, 123, 0.35);
}

.cta-panel .btn-primary:hover {
  background: var(--cerise-dark);
  border-color: var(--cerise-dark);
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.25rem;
}

.footer-tagline {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.footer-contact a {
  color: var(--teal-light);
  font-size: 0.95rem;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.85rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  padding: 1.25rem 0 1.75rem;
  text-align: center;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal .service-card,
.reveal .timeline-step {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible .service-card,
.reveal.is-visible .timeline-step {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible .service-card:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .service-card:nth-child(2) { transition-delay: 0.1s; }
.reveal.is-visible .service-card:nth-child(3) { transition-delay: 0.15s; }
.reveal.is-visible .service-card:nth-child(4) { transition-delay: 0.2s; }
.reveal.is-visible .service-card:nth-child(5) { transition-delay: 0.25s; }
.reveal.is-visible .service-card:nth-child(6) { transition-delay: 0.3s; }
.reveal.is-visible .service-card:nth-child(7) { transition-delay: 0.35s; }
.reveal.is-visible .service-card:nth-child(8) { transition-delay: 0.4s; }

.reveal.is-visible .timeline-step:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .timeline-step:nth-child(2) { transition-delay: 0.1s; }
.reveal.is-visible .timeline-step:nth-child(3) { transition-delay: 0.15s; }
.reveal.is-visible .timeline-step:nth-child(4) { transition-delay: 0.2s; }
.reveal.is-visible .timeline-step:nth-child(5) { transition-delay: 0.25s; }
.reveal.is-visible .timeline-step:nth-child(6) { transition-delay: 0.3s; }

/* ── Responsive ── */

@media (max-width: 899px) {
  .parallax-bg::before {
    transform: none;
    will-change: auto;
  }
}

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

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

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    justify-content: center;
  }

  .readiness-card {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .brand img {
    max-height: 54px;
  }

  .navbar {
    min-height: 76px;
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 4%;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--grey-100);
  }

  .nav-menu a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-cta {
    text-align: center;
    margin: 0.5rem 0;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  /* Hero bg on mobile — image visible with readable text overlay */
  .hero.parallax-bg--hero {
    background-color: var(--teal-light);
    background-image:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(245, 253, 253, 0.9) 55%,
        rgba(230, 248, 248, 0.86) 100%
      ),
      var(--bg-hero);
    background-position: center, top right;
    background-size: cover, cover;
    background-repeat: no-repeat;
  }

  .hero.parallax-bg--hero::before,
  .hero.parallax-bg--hero::after {
    display: none;
  }

  .parallax-bg--light::before {
    background-position: center;
  }

  .glass-panel {
    padding: 1.75rem;
  }

  .split-panel,
  .split-panel--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }

  .footer-nav {
    align-items: center;
  }

  .section-cta {
    padding: 3.25rem 0 2.5rem;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .timeline-step {
    background: var(--white);
    border: 1px solid rgba(0, 140, 140, 0.15);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 14px 35px rgba(7, 24, 39, 0.08);
    gap: 0;
  }

  .timeline-marker {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    font-weight: 700;
  }

  .timeline-body {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .timeline-body h3 {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--navy);
  }

  .timeline-body p {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
  }

}

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

  .parallax-bg::before {
    transform: none;
    will-change: auto;
  }

  .hero-enter {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal,
  .reveal .service-card,
  .reveal .timeline-step {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .service-card:hover,
  .nav-cta:hover,
  .vacancy-card:hover {
    transform: none;
  }
}

/* Recruitment section — single-column layout */

.recruitment-content {
  text-align: center;
}

.recruitment-content .lead {
  margin-bottom: 1.75rem;
}

.recruitment-actions {
  justify-content: center;
}

.nav-menu a.is-active {
  color: var(--teal);
}

body.modal-open {
  overflow: hidden;
}

.vacancies-hero {
  padding: 4.5rem 0 3rem;
}

.vacancies-hero__inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.vacancies-hero__inner .hero-lead {
  margin-inline: auto;
  max-width: 640px;
}

/* Opportunities listing — compact vertical rhythm */

.vacancies-listing.section {
  padding: 2.75rem 0 3rem;
}

.vacancies-listing__header.section-header {
  margin-bottom: 2rem;
}

.vacancies-listing__header h2 {
  margin-bottom: 1rem;
}

.vacancies-filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.vacancies-filters__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.vacancies-filters__input-wrap {
  position: relative;
}

.vacancies-filters__input-wrap i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.vacancies-filters input,
.vacancies-filters select,
.application-form input:not([type="checkbox"]):not([type="file"]),
.application-form select,
.application-form textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.vacancies-filters__input-wrap input {
  padding-left: 2.35rem;
}

.vacancies-filters input:focus,
.vacancies-filters select:focus,
.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 140, 140, 0.12);
}

.vacancies-filters__actions {
  display: flex;
  align-items: flex-end;
}

.vacancy-results-count {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.vacancy-empty[hidden],
#vacancy-list[hidden] {
  display: none !important;
}

.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.vacancy-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.vacancy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 140, 140, 0.28);
}

.vacancy-card__category {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cerise-dark);
  background: var(--cerise-soft);
  border-radius: 999px;
}

.vacancy-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.vacancy-card__meta {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.vacancy-card__meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.vacancy-card__meta i {
  flex-shrink: 0;
  width: 1rem;
  margin-top: 0.15rem;
  color: var(--teal);
  text-align: center;
}

.vacancy-card__summary {
  flex: 1;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.vacancy-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.vacancy-card__actions .btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
}

.vacancy-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--white);
  border: 1px dashed var(--grey-200);
  border-radius: var(--radius);
}

.vacancy-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--teal);
  background: var(--teal-light);
  border-radius: 50%;
}

.vacancy-empty h3 {
  margin-bottom: 0.5rem;
}

.vacancy-empty p {
  margin: 0;
  color: var(--text-muted);
}

/* Vacancy modal */

.vacancy-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vacancy-modal[hidden] {
  display: none;
}

.vacancy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 34, 52, 0.62);
  backdrop-filter: blur(4px);
}

.vacancy-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.vacancy-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 0.75rem;
  border-bottom: 1px solid var(--grey-100);
}

.vacancy-modal__header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  overflow-wrap: anywhere;
}

.vacancy-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--navy);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.vacancy-modal__close:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.vacancy-modal__close:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.vacancy-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.35rem;
  -webkit-overflow-scrolling: touch;
}

.vacancy-modal__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 1rem;
  background: var(--grey-50);
  border-radius: var(--radius-sm);
}

.vacancy-modal__facts div {
  margin: 0;
}

.vacancy-modal__facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.vacancy-modal__facts dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.vacancy-modal__section {
  margin-bottom: 1.25rem;
}

.vacancy-modal__section h3 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.vacancy-modal__section p,
.vacancy-modal__section li {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.vacancy-modal__section ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.vacancy-modal__footer {
  padding: 1rem 1.35rem 1.25rem;
  border-top: 1px solid var(--grey-100);
  background: var(--off-white);
}

.vacancy-outcome-note {
  margin-top: 0.25rem;
  padding: 1rem 1.1rem;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
}

.vacancy-outcome-note__label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.vacancy-outcome-note__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.application-vacancy-context {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.85rem;
}

.application-vacancy-context__closing {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.application-vacancy-context__closing i {
  margin-top: 0.15rem;
  color: var(--teal);
}

.application-vacancy-context__closing strong {
  color: var(--navy);
  font-weight: 600;
}

/* Application form */

.vacancies-application {
  background: var(--white);
  scroll-margin-top: 96px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.application-success {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(0, 140, 140, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.application-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  color: var(--teal);
  background: var(--teal-light);
  border-radius: 50%;
}

.application-success h3 {
  margin-bottom: 0.75rem;
}

.application-success p {
  margin: 0;
  color: var(--text-muted);
}

.application-success__reference {
  margin: 1.25rem 0 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.application-success__reference strong {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.application-form {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.form-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}

.form-field--checkbox input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-field--checkbox label {
  margin: 0;
  font-weight: 500;
  line-height: 1.55;
}

.required {
  color: var(--cerise);
}

.field-optional {
  font-weight: 500;
  color: var(--text-muted);
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.char-counter {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.char-counter--met {
  color: var(--teal-dark);
  font-weight: 600;
}

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cerise-dark);
}

.application-form .is-invalid {
  border-color: var(--cerise);
}

.form-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.form-actions .btn {
  min-width: 220px;
}

.form-actions .btn[disabled] {
  opacity: 0.78;
  cursor: not-allowed;
  transform: none;
}

.form-alert {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-alert--success {
  color: var(--teal-dark);
  background: var(--teal-light);
  border: 1px solid rgba(0, 140, 140, 0.2);
}

.form-alert--error {
  color: var(--cerise-dark);
  background: var(--cerise-soft);
  border: 1px solid rgba(217, 44, 123, 0.2);
}

@media (max-width: 1024px) {
  .vacancies-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .vacancies-filters__field--search {
    grid-column: 1 / -1;
  }

  .vacancies-filters__actions {
    grid-column: 1 / -1;
  }

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

@media (max-width: 768px) {
  .vacancies-hero {
    padding: 3.25rem 0 2.25rem;
  }

  .vacancies-listing.section {
    padding: 2rem 0 2.25rem;
  }

  .vacancies-listing__header.section-header {
    margin-bottom: 1.5rem;
  }

  .vacancies-listing__header h2 {
    margin-bottom: 0.75rem;
  }

  .vacancies-filters {
    grid-template-columns: 1fr;
    padding: 1.1rem;
    margin-bottom: 1.25rem;
  }

  .vacancy-results-count {
    margin-bottom: 1rem;
  }

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

  .vacancy-card__actions {
    flex-direction: column;
  }

  .vacancy-card__actions .btn {
    width: 100%;
  }

  .vacancy-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .vacancy-modal__dialog {
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .vacancy-modal__facts {
    grid-template-columns: 1fr;
  }

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

  .application-form {
    padding: 1.25rem;
  }

  .form-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .application-success {
    padding: 1.5rem 1.1rem;
  }

  .vacancies-application {
    scroll-margin-top: 84px;
  }
}
