/* Liberty Point – styles.css v40 (refresh with hard reload if formatting is wrong) */
/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
html {
  scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Each section is a full-viewport layer for parallax */
.layer {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.layer-placeholder {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Layer 1: Nav bar – light background so logo (brand colours) is visible */
section#layer-1.layer.layer-nav,
.layer-nav {
  min-height: auto;
  padding: 1.25rem 3rem;
  align-items: center;
  justify-content: flex-start;
  background-color: #f1f5f9 !important;
}

.nav-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.nav-logo {
  height: 2.5rem;
  width: auto;
  max-height: 2.5rem;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.nav-brand-name {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2B2E34;
  line-height: 1.2;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #3A3F45;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #3F6F9A;
}

.nav-links a:focus {
  outline: 2px solid #3F6F9A;
  outline-offset: 2px;
}

.nav-links a:focus:not(:focus-visible) {
  outline: none;
}

.nav-links a:focus-visible {
  outline: 2px solid #3F6F9A;
  outline-offset: 2px;
}

/* Current page indicator in nav – ensure underline shows on About, Services, Contact */
.nav-links a.nav-current,
#layer-1 .nav-links a.nav-current {
  color: #3F6F9A;
  border-bottom: 2px solid #3F6F9A;
  padding-bottom: 0.25rem;
}

/* Hamburger: desktop = always hidden (mobile-only rules in @media below) */
@media (min-width: 769px) {
  .nav-toggle {
    display: none !important;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: #3A3F45;
  cursor: pointer;
  border-radius: 0.25rem;
  appearance: none;
}
.nav-toggle:hover {
  color: #3F6F9A;
}
.nav-toggle:focus-visible {
  outline: 2px solid #3F6F9A;
  outline-offset: 2px;
}
.nav-toggle-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}
.nav-toggle-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.nav-toggle-icon--close {
  display: none;
}
.nav-bar.is-open .nav-toggle-icon--menu {
  display: none;
}
.nav-bar.is-open .nav-toggle-icon--close {
  display: block;
}

/* Parallax backgrounds: MUST stay out of flow (fixed + absolute) so they overlay viewport, not stack below nav */
#parallax-bgs {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  z-index: 0;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
}

#parallax-bgs .parallax-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  visibility: hidden;
  background-color: #2B2E34;
  margin: 0 !important;
  padding: 0 !important;
}

#parallax-bgs .parallax-bg.parallax-bg--visible {
  z-index: 1;
  visibility: visible;
}

#parallax-bgs .parallax-bg__img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 !important;
  z-index: 0;
}

.parallax-bg--hero {
  background-color: #4a90a4;
}

/* Shading overlay: on top of every parallax image. #2B2E34 at 35% (lighter for all heroes). */
.parallax-bg__overlay,
#layer-4-bg-overlay,
#layer-6-bg-overlay {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2 !important;
  background-color: rgba(43, 46, 52, 0.35) !important;
  background: rgba(43, 46, 52, 0.35) !important;
  pointer-events: none;
}

/* Nav bar: above parallax layer, background must show. */
section#layer-1 {
  position: relative;
  z-index: 100;
  background-color: #f1f5f9 !important;
}

main {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Hero section overlays the fixed parallax bg so text sits on top of the hero image */
#layer-2 {
  position: relative;
  z-index: 1;
}

/* Layer 2: Hero – transparent so parallax bg shows through */
.layer-hero {
  justify-content: center;
  align-items: center;
  padding: 4rem;
  position: relative;
  background: transparent;
}

/* Scrolling sections sit above all parallax backgrounds */
#layer-3,
#layer-4,
#layer-5,
#layer-6,
#layer-7,
#layer-10 {
  position: relative;
  z-index: 10;
}
/* Stacking: each section above the next so bottom waves (::after) can overlap the section below */
#layer-3 { z-index: 13; }
#layer-4 { z-index: 12; }
#layer-5 { z-index: 11; }
#layer-6 { z-index: 10; }
#layer-7 { z-index: 9; }

/* Layer 5: hero_2 parallax – transparent so hero_2 shows through */
#layer-5.layer-5-parallax {
  min-height: calc(100vh + 10rem);
  background: transparent;
}
/* Layer 6: Scope of engagement – same gradient as section 4; no top wave (image above) */
#layer-6 {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 22%, #e2e8f0 48%, #f1f5f9 75%, #f8fafc 100%);
  background-color: #f1f5f9;
  overflow: visible;
}
/* Wave at top of section 6 – same as section 3’s top wave; scrolls over section 5 (hero_2) like section 3 over hero */
#layer-6::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5rem;
  transform: translateY(-100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%2394a3b8' d='M0 80L1440 80 1440 40Q1080 0 720 40Q360 80 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 100%;
  pointer-events: none;
  z-index: 0;
}
#layer-6::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  transform: translateY(100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f8fafc' d='M0 0L1440 0 1440 40Q1080 80 720 40Q360 0 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  pointer-events: none;
  z-index: 1;
}
/* Layer 7: hero_3 parallax – transparent so hero_3 shows through */
#layer-7.layer-7-parallax {
  min-height: calc(100vh + 10rem);
  background: transparent;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 68rem;
  margin: calc(-4.5rem - 20px) auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  max-width: 44rem;
}

.hero-heading {
  margin: 0 0 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 0, 0, 0.25);
}

.hero-text {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Same background as nav bar (.layer-nav) */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #3F6F9A;
  background-color: #f1f5f9;
  text-decoration: none;
  border-radius: 0.375rem;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  border: 2px solid #f1f5f9;
}

.hero-cta:hover {
  background-color: #e2e8f0;
  color: #2d5a7b;
}

.hero-cta:focus {
  outline: 2px solid #2B2E34;
  outline-offset: 2px;
}

.hero-cta:focus:not(:focus-visible) {
  outline: none;
}

.hero-cta:focus-visible {
  outline: 2px solid #2B2E34;
  outline-offset: 2px;
}

/* Hero: content (heading, text, button) fades in and drifts up when section is in view */
@media (prefers-reduced-motion: no-preference) {
  .layer-hero:not(.is-visible) .hero-heading,
  .layer-hero:not(.is-visible) .hero-text,
  .layer-hero:not(.is-visible) .hero-cta {
    opacity: 0;
    transform: translateY(32px);
  }

  .layer-hero.is-visible .hero-heading,
  .layer-hero.is-visible .hero-text,
  .layer-hero.is-visible .hero-cta {
    opacity: 1;
    transform: translateY(0);
  }

  .layer-hero .hero-heading {
    transition: opacity 1s ease-out, transform 1s ease-out;
    transition-delay: 0s;
  }

  .layer-hero .hero-text {
    transition: opacity 0.95s ease-out, transform 0.95s ease-out;
    transition-delay: 0.15s;
  }

  .layer-hero .hero-cta {
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
    transition-delay: 0.28s;
  }
}

/* Shared wave shape (straight top, wavy bottom) – used at top of sections */
/* Wave shape (wavy top, straight bottom) – used at bottom of sections */

/* Hero: wave at bottom (transition into section 3) */
#layer-2 {
  position: relative;
  overflow: visible;
}
#layer-2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  transform: translateY(100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f8fafc' d='M0 0L1440 0 1440 40Q1080 80 720 40Q360 0 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  pointer-events: none;
  z-index: 1;
}

/* Layer 3: Statement – “Where margin is won or lost…” on gradient */
#layer-3 {
  position: relative;
  min-height: calc(100vh + 10rem);
  background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 22%, #e2e8f0 48%, #f1f5f9 75%, #f8fafc 100%);
  background-color: #f1f5f9;
  overflow: visible;
}
.statement-section__inner {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 5rem 2.5rem 6rem;
  position: relative;
  z-index: 1;
}
.statement-section__heading {
  margin: 0 0 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
}
.statement-section__text {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #1e293b;
}
.statement-section__text:last-child {
  margin-bottom: 0;
}

/* Wave at top of section 3 (between hero and outcomes) – matches gradient top */
#layer-3::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5rem;
  transform: translateY(-100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%2394a3b8' d='M0 80L1440 80 1440 40Q1080 0 720 40Q360 80 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 100%;
  pointer-events: none;
  z-index: 0;
}

/* Wave at bottom of section 3 – extends down so it paints on top of section 4 */
#layer-3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  transform: translateY(100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f8fafc' d='M0 0L1440 0 1440 40Q1080 80 720 40Q360 0 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  pointer-events: none;
  z-index: 1;
}

/* Layer 4: Outcomes (cards) – same gradient as layer 3; taller so wave edges not visible when centred */
#layer-4 {
  position: relative;
  min-height: calc(100vh + 10rem);
  background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 22%, #e2e8f0 48%, #f1f5f9 75%, #f8fafc 100%);
  background-color: #f1f5f9;
  overflow: visible;
}
#layer-4::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5rem;
  transform: translateY(-100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f8fafc' d='M0 80L1440 80 1440 40Q1080 0 720 40Q360 80 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 100%;
  pointer-events: none;
  z-index: 1;
}
#layer-4::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  transform: translateY(100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f8fafc' d='M0 0L1440 0 1440 40Q1080 80 720 40Q360 0 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  pointer-events: none;
  z-index: 1;
}

/* No top wave on section 6 – it’s a full viewport standalone section (no thin strip). */
.outcomes-section {
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2.5rem 6rem;
  min-height: 0;
  position: relative;
  z-index: 1;
}

/* Section 5: waves top and bottom (light) */
#layer-5 {
  overflow: visible;
}
/* Layer 5: waves at top (from cards) and bottom (into hero_3) – light so hero_2 overlay reads */
#layer-5::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5rem;
  transform: translateY(-100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f1f5f9' d='M0 80L1440 80 1440 40Q1080 0 720 40Q360 80 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 100%;
  pointer-events: none;
  z-index: 0;
}
/* Section 5 is an image (hero_2) – no bottom wave between 5 and 6 */
#layer-5::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
}
/* Layer 5: text on right over hero_2 (contrast with section 2 left), hero-style visibility over image */
#layer-5 .layer-5-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: calc(100vh + 10rem);
  box-sizing: border-box;
}
#layer-5 .layer-5-content {
  max-width: 40rem;
  text-align: right;
}
#layer-5 .layer-5-heading {
  margin: 0 0 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 0, 0, 0.25);
}
#layer-5 .layer-5-text {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
}
#layer-5 .layer-5-text:last-child {
  margin-bottom: 0;
}

#layer-6 .layer-placeholder {
  position: relative;
  z-index: 2;
}

/* Section 7: hero_3 parallax – top wave from section 6 */
#layer-7 {
  overflow: visible;
}
#layer-7::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5rem;
  transform: translateY(-100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f1f5f9' d='M0 80L1440 80 1440 40Q1080 0 720 40Q360 80 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 100%;
  pointer-events: none;
  z-index: 0;
}
/* Section 7: CTA over hero_3 image – centre content, white text with shadow for readability */
#layer-7.cta-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh + 10rem);
}
#layer-7 .cta-section__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#layer-7 .cta-section__heading {
  margin: 0 0 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 0, 0, 0.25);
}
#layer-7 .cta-section__text {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
}
#layer-7 .cta-section__text:last-child {
  margin-bottom: 0;
}
#layer-7 .hero-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Footer: wave at top (dark) */
footer.site-footer,
footer#layer-10 {
  position: relative;
  overflow: visible;
}
footer.site-footer::before,
footer#layer-10::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5rem;
  transform: translateY(-100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%232b3a4a' d='M0 80L1440 80 1440 40Q1080 0 720 40Q360 80 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 100%;
  pointer-events: none;
  z-index: 0;
}

.outcomes-section__inner {
  width: 100%;
  max-width: 72rem;
  margin: -10px auto 0;
}

.outcomes-section__heading {
  margin: 0 0 3.5rem;
  padding-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
  text-align: center;
  border-bottom: 1px solid rgba(45, 82, 112, 0.55);
}

/* Scroll-in: statement and outcomes content fades in when section enters view (only when motion is not reduced) */
@media (prefers-reduced-motion: no-preference) {
  .statement-section:not(.is-visible) .statement-section__heading,
  .statement-section:not(.is-visible) .statement-section__text {
    opacity: 0;
    transform: translateY(24px);
  }
  .statement-section.is-visible .statement-section__heading,
  .statement-section.is-visible .statement-section__text {
    opacity: 1;
    transform: translateY(0);
  }
  .statement-section .statement-section__heading,
  .statement-section .statement-section__text {
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  }
  .statement-section .statement-section__text { transition-delay: 0.12s; }
  .statement-section .statement-section__text:last-of-type { transition-delay: 0.24s; }

  /* Outcomes (section 4): fade in when section enters view, like section 3 */
  .outcomes-section:not(.is-visible) .outcomes-section__heading {
    opacity: 0;
    transform: translateY(40px);
  }
  .outcomes-section:not(.is-visible) .outcomes-card {
    opacity: 0;
    transform: translateY(24px);
  }
  .outcomes-section.is-visible .outcomes-section__heading,
  .outcomes-section.is-visible .outcomes-card {
    opacity: 1;
    transform: translateY(0);
  }
  .outcomes-section .outcomes-section__heading {
    transition: opacity 1s ease-out, transform 1s ease-out;
    transition-delay: 0s;
  }
  .outcomes-section .outcomes-card {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  .outcomes-section .outcomes-card:nth-child(1) { transition-delay: 0.12s; }
  .outcomes-section .outcomes-card:nth-child(2) { transition-delay: 0.24s; }
  .outcomes-section .outcomes-card:nth-child(3) { transition-delay: 0.36s; }
  .outcomes-section .outcomes-card:nth-child(4) { transition-delay: 0.48s; }

  /* Section 5 (hero_2 content): fade in when in viewport */
  #layer-5:not(.is-visible) .layer-5-heading,
  #layer-5:not(.is-visible) .layer-5-text {
    opacity: 0;
    transform: translateY(24px);
  }
  #layer-5.is-visible .layer-5-heading,
  #layer-5.is-visible .layer-5-text {
    opacity: 1;
    transform: translateY(0);
  }
  #layer-5 .layer-5-heading,
  #layer-5 .layer-5-text {
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  }
  #layer-5 .layer-5-text:first-of-type { transition-delay: 0.1s; }
  #layer-5 .layer-5-text:last-of-type { transition-delay: 0.2s; }

  /* Section 6 (scope): fade in when in viewport */
  .layer-scope:not(.is-visible) .section-title {
    opacity: 0;
    transform: translateY(40px);
  }
  .layer-scope:not(.is-visible) .scope-item {
    opacity: 0;
    transform: translateY(24px);
  }
  .layer-scope.is-visible .section-title,
  .layer-scope.is-visible .scope-item {
    opacity: 1;
    transform: translateY(0);
  }
  .layer-scope .section-title {
    transition: opacity 1s ease-out, transform 1s ease-out;
    transition-delay: 0s;
  }
  .layer-scope .scope-item {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  .layer-scope .scope-item:nth-child(1) { transition-delay: 0.12s; }
  .layer-scope .scope-item:nth-child(2) { transition-delay: 0.24s; }
  .layer-scope .scope-item:nth-child(3) { transition-delay: 0.36s; }
}

/* 4-card grid: clean, equal-height cards – must display as grid (section 4) */
#layer-4 .outcomes-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  align-items: stretch;
}

#layer-4 .outcomes-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

#layer-4 .outcomes-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  background-color: #3F6F9A;
  background: linear-gradient(160deg, #3F6F9A 0%, #2d5270 100%);
  color: #fff;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

#layer-4 .outcomes-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

#layer-4 .outcomes-card__heading {
  margin: 0 0 0.75rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #1e293b;
}

#layer-4 .outcomes-card__body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #64748b;
  flex-grow: 1;
}

/* Layer 5: transparent (hero_2). Layer 7: transparent (hero_3). Layer 6 is solid (wave section). */
#layer-5,
#layer-7 {
  background: transparent;
}

/* Layer 7: CTA over image – background transparent (hero_3 shows through) */

/* CTA content layout (shared; section 7 uses over-image styling above) */

.cta-section__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-section__heading {
  margin: 0 0 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
}

.cta-section__text {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.cta-section__text:last-child {
  margin-bottom: 0;
}

/* Section 8 CTA uses same button style as hero (.hero-cta); focus outline white so visible on dark CTA background */
.cta-section .hero-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Site footer: dark blue-grey to match site palette (not charcoal) */
footer.site-footer,
footer#layer-10 {
  min-height: 0 !important;
  padding: 3rem 3rem 1.5rem !important;
  display: block !important;
  background-color: #2b3a4a !important;
  background: #2b3a4a !important;
  color: rgba(255, 255, 255, 0.9);
}

footer .footer-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 68rem;
  margin: 0 auto 2.5rem;
  align-items: start;
  justify-items: center;
}

footer .footer-col,
footer .footer-col--brand,
footer .footer-col--legal,
footer .footer-col--nav {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

footer .footer-logo {
  height: 2.5rem;
  width: auto;
  display: block;
  object-fit: contain;
}

footer .footer-brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

footer .footer-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

footer .footer-placeholder {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

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

footer .footer-links a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer .footer-links a:hover,
footer .footer-links--legal a:hover {
  color: #3F6F9A;
}

footer .footer-copyright {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Responsive: narrow viewports */
@media (max-width: 768px) {
  /* Waves: same colours/gradient as desktop; only height reduced on mobile (shallower + lighter) so they don’t feel “two deep” */
  #layer-2::after,
  #layer-3::before,
  #layer-3::after,
  #layer-4::before,
  #layer-4::after,
  #layer-5::before,
  #layer-6::before,
  #layer-6::after,
  #layer-7::before,
  footer.site-footer::before,
  footer#layer-10::before {
    height: 2.5rem !important;
    opacity: 1 !important;
  }

  .layer-nav {
    padding: 1rem 1.25rem;
    position: relative;
  }

  .nav-bar {
    gap: 0;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex !important;
    margin-left: auto;
  }

  .nav-links {
    display: none !important;
    flex-direction: column;
    gap: 0;
    width: 100%;
    order: 3;
    padding: 1rem 0 0;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-bar.is-open .nav-links {
    display: flex !important;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .nav-brand-name {
    font-size: 1.35rem;
  }

  .layer-hero {
    padding: 2rem 1.5rem;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 0;
  }

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

  .hero-heading {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-cta {
    align-self: center;
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }

  #layer-5 .layer-5-inner {
    padding: 3rem 1.5rem;
    justify-content: center;
  }
  #layer-5 .layer-5-content {
    text-align: center;
  }
  #layer-5 .layer-5-heading {
    font-size: 1.875rem;
    margin-bottom: 1rem;
  }
  #layer-5 .layer-5-text {
    font-size: 1rem;
  }

  .statement-section__inner {
    padding: 3rem 1.5rem;
    text-align: center;
  }
  .statement-section__heading {
    font-size: 1.875rem;
    margin-bottom: 1rem;
  }
  .statement-section__text {
    font-size: 1rem;
  }

  .layer-scope .section-title {
    text-align: center;
  }

  .layer-scope .scope-item {
    text-align: center;
  }

  #layer-7.cta-section {
    padding: 4rem 1.5rem 3rem;
  }
  #layer-7.cta-section .cta-section__heading {
    font-size: 1.875rem;
  }
  #layer-7.cta-section .cta-section__text {
    font-size: 1rem;
  }

  footer.site-footer,
  footer#layer-10 {
    padding: 2rem 1.5rem 1.25rem !important;
  }

  footer .footer-columns {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .outcomes-section {
    padding: 4rem 1.5rem 5rem;
  }

  .outcomes-section__heading {
    font-size: 1.875rem;
    margin-bottom: 2.25rem;
    text-align: center;
  }

  #layer-4 .outcomes-card {
    text-align: center;
  }

  #layer-4 .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #layer-4 .outcomes-card {
    padding: 2rem 1.75rem;
  }

  #layer-4 .outcomes-card__heading {
    font-size: 1.25rem;
  }

  #layer-4 .outcomes-card__body {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .statement-section__heading {
    font-size: 1.5rem;
  }
  .outcomes-section__heading {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
  }
  .layer-scope .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
  }
  #layer-5 .layer-5-heading {
    font-size: 1.5rem;
  }

  #layer-4 .outcomes-grid {
    grid-template-columns: 1fr;
  }
}

/* Landscape / short viewport only: hero content clears nav and section is taller */
@media (max-height: 500px) {
  #layer-2.layer.layer-hero {
    padding-top: 5rem;
    min-height: 100vh;
  }
  #layer-2 .hero-inner {
    margin-top: 0;
  }
}

/* DO NOT REMOVE: Nav bar must always have this background. Last rule so it wins. */
section#layer-1.layer.layer-nav {
  background-color: #f1f5f9 !important;
  background: #f1f5f9 !important;
  z-index: 100;
}

/* Section 3: taller so wave edges not visible when centred. */
section#layer-3.layer {
  min-height: calc(100vh + 10rem) !important;
  background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 22%, #e2e8f0 48%, #f1f5f9 75%, #f8fafc 100%) !important;
  background-color: #f1f5f9 !important;
}

/* Section 4 outcomes heading: thin faint blue-gray underline. */
#layer-4 .outcomes-section__heading {
  border-bottom: 1px solid rgba(45, 82, 112, 0.55) !important;
}

/* Section 4: gradient (outcomes); taller so wave edges not visible when centred. */
section#layer-4.layer {
  min-height: calc(100vh + 10rem) !important;
  background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 22%, #e2e8f0 48%, #f1f5f9 75%, #f8fafc 100%) !important;
  background-color: #f1f5f9 !important;
}
/* Section 5: taller to match 3, 4, 7 (wave edges not visible when centred). Section 6: full viewport. */
section#layer-5.layer {
  min-height: calc(100vh + 10rem) !important;
}
section#layer-6.layer {
  min-height: 100vh !important;
}
section#layer-7.layer {
  min-height: calc(100vh + 10rem) !important;
}
section#layer-5.layer,
section#layer-7.layer {
  background: transparent !important;
  background-color: transparent !important;
}
section#layer-6.layer {
  background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 22%, #e2e8f0 48%, #f1f5f9 75%, #f8fafc 100%) !important;
  background-color: #f1f5f9 !important;
}
/* DO NOT REMOVE: Footer must keep dark blue-grey background and layout. */
footer.site-footer,
footer#layer-10 {
  background-color: #2b3a4a !important;
  background: #2b3a4a !important;
  padding: 3rem 3rem 1.5rem !important;
  display: block !important;
  min-height: 0 !important;
}

/* DO NOT REMOVE: Parallax overlays – shading on all three images (lighter 35% opacity). */
#hero-bg .parallax-bg__overlay,
#layer-4-bg .parallax-bg__overlay,
#layer-6-bg .parallax-bg__overlay,
#layer-4-bg-overlay,
#layer-6-bg-overlay {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10 !important;
  background: rgba(43, 46, 52, 0.15) !important;
  background-color: rgba(43, 46, 52, 0.15) !important;
  pointer-events: none !important;
}

/* Layer 6: Scope of engagement – matches section 3/4 typography and outcomes card style */
.layer-scope {
  padding: 5rem 0 6rem;
}

.layer-scope .container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2.5rem;
  box-sizing: border-box;
}

.layer-scope .section-title {
  text-align: center;
  margin: 0 0 3.5rem;
  padding-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
  border-bottom: 1px solid rgba(45, 82, 112, 0.55);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.scope-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2rem;
  min-height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.scope-number {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1rem;
}

.scope-title {
  margin: 0 0 0.75rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #1e293b;
}

.scope-text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #64748b;
  flex-grow: 1;
}

/* Mobile stacking */
@media (max-width: 900px) {
  .scope-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .layer-scope .section-title {
    font-size: 1.875rem;
    margin-bottom: 2.25rem;
  }
}

/* Services page helpers */
body.page-service {
  background: #f8fafc;
}

body.page-service main {
  background: transparent;
  min-height: 0;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2.5rem;
  box-sizing: border-box;
}

.page-title {
  margin: 0 0 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.page-intro {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #1e293b;
}

.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #3F6F9A;
  background-color: #f1f5f9;
  text-decoration: none;
  border-radius: 0.375rem;
  border: 2px solid #f1f5f9;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn.btn-primary:hover {
  background-color: #e2e8f0;
  color: #2d5a7b;
}

.btn.btn-primary:focus-visible {
  outline: 2px solid #2B2E34;
  outline-offset: 2px;
}

#service-layer-1 .container,
#service-layer-2 .container,
#service-layer-4 .container,
#service-layer-6 .container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

#service-layer-1 .container {
  padding-top: 5rem;
}

.section-title {
  margin: 0 0 2rem;
  padding-bottom: 0.75rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
  border-bottom: 1px solid rgba(45, 82, 112, 0.35);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.layer-gradient {
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 22%, #e2e8f0 48%, #f1f5f9 75%, #f8fafc 100%) !important;
  background-color: #f1f5f9 !important;
  padding: 5rem 0 6rem;
}

.layer-gradient .container {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.wave-top {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5rem;
  transform: translateY(-100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%2394a3b8' d='M0 80L1440 80 1440 40Q1080 0 720 40Q360 80 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 100%;
  pointer-events: none;
  z-index: 0;
}

.wave-bottom {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  transform: translateY(100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f8fafc' d='M0 0L1440 0 1440 40Q1080 80 720 40Q360 0 0 40Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.deliverables-left p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #1e293b;
}

.deliverable-item {
  margin-bottom: 1.75rem;
}

.deliverable-item:last-child {
  margin-bottom: 0;
}

.deliverable-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
}

.deliverable-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
}

@media (max-width: 768px) {
  .deliverables-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.extensions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.extension-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
}

.extension-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
}

.container.cta {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.container.cta .btn-primary {
  margin-bottom: 1rem;
}

.cta-subtext {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

/* Service page CTA: same height and width feel as other sections – viewport height + same padding */
#service-layer-7.cta-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
  /* Same vertical padding as .service-section (5.5rem 0 6rem) so section is as tall as others */
  padding: 5.5rem 2rem 6rem;
}
#service-layer-7 .cta-section__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#service-layer-7 .cta-section__heading {
  margin: 0 0 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
}
#service-layer-7 .cta-section__text {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #1e293b;
}
#service-layer-7 .cta-section__text:last-child {
  margin-bottom: 0;
}
#service-layer-7 .hero-cta:focus-visible {
  outline: 2px solid #2B2E34;
  outline-offset: 2px;
}
@media (max-width: 768px) {
  #service-layer-7 .cta-section__heading {
    font-size: 1.875rem;
  }
  #service-layer-7 .cta-section__text {
    font-size: 1rem;
  }
}
@media (max-width: 560px) {
  #service-layer-7 .cta-section__heading {
    font-size: 1.5rem;
  }
}
