:root {
  --bg-0: #f2f6fa;
  --bg-1: #e7eef6;
  --ink: #0f2740;
  --ink-soft: #334b62;
  --blue: #1f6fa4;
  --blue-deep: #164f74;
  --line: #d6e0eb;
  --panel: rgba(255, 255, 255, 0.84);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  background: var(--bg-0);
}

body {
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: var(--bg-0);
}

.page-wrap {
  width: min(1220px, 94vw);
  height: 100svh;
  max-height: 100svh;
  margin: 0 auto;
  padding: clamp(14px, 1.7vh, 20px) clamp(18px, 3vw, 40px) clamp(18px, 2.1vh, 28px);
  display: flex;
  flex-direction: column;
}

.top-bar {
  height: clamp(92px, 16vh, 140px);
  display: flex;
  align-items: flex-start;
}

.logo {
  width: clamp(125px, 15vw, 190px);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(21, 59, 87, 0.14));
}

.logo-link {
  display: inline-block;
}

.hero {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  justify-items: center;
  gap: clamp(8px, 1.35vh, 14px);
  text-align: center;
}

.page-wrap:not(.training-page) .hero {
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  gap: clamp(16px, 2.2vh, 26px);
}

.page-wrap:not(.training-page) {
  padding: clamp(22px, 2.8vh, 34px) clamp(26px, 4vw, 56px) clamp(30px, 3.8vh, 44px);
}

.page-wrap:not(.training-page) .services {
  gap: clamp(20px, 2.2vw, 34px);
}

.page-wrap:not(.training-page) .hero .legal-mark {
  justify-self: end;
  margin-top: 4px;
}

.kicker {
  margin: 0;
  color: var(--blue-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 0.95vw, 0.98rem);
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: "Merriweather", serif;
  color: #122c45;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.15;
  max-width: 21ch;
}

.intro {
  margin: 0;
  max-width: 900px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.4rem);
  line-height: 1.35;
}

.services {
  width: 100%;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.25vw, 20px);
  align-items: stretch;
}

.service-card {
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.92), rgba(251, 253, 255, 0.84));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(15, 39, 64, 0.08);
  text-align: left;
  min-height: clamp(290px, 35vh, 390px);
  padding: clamp(14px, 1.5vh, 18px) clamp(14px, 1.2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(2px);
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 39, 64, 0.12);
}

.service-card h2 {
  margin: 0;
  color: #163552;
  font-size: clamp(1.3rem, 1.55vw, 1.75rem);
  line-height: 1.22;
}

.service-card p {
  margin: clamp(8px, 1vh, 12px) 0 0;
  color: #355068;
  font-size: clamp(0.98rem, 1.08vw, 1.2rem);
  line-height: 1.32;
  max-width: 35ch;
}

.service-card .learn-more {
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.94rem;
  align-self: flex-end;
  margin-top: auto;
}

.service-card .learn-more::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 1.2em;
  line-height: 1;
}

.service-image {
  width: calc(100% + 26px);
  margin-left: -13px;
  margin-right: -13px;
  height: clamp(170px, 21vh, 250px);
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  border: 0;
  background: transparent;
}

.reach-out {
  align-self: center;
  min-width: min(560px, 76vw);
  min-height: clamp(56px, 7.4vh, 72px);
  padding: 0 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: clamp(1.2rem, 1.75vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f5f9ff;
  background: linear-gradient(135deg, #1b6da1, #1a5e8a);
  border: 1px solid #2b7eb2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(20, 66, 99, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rate-banner {
  margin: 0;
  width: min(980px, 92vw);
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #e7f0f8;
  border-top: 1px solid #bfd3e5;
  border-bottom: 1px solid #bfd3e5;
  border-left: 0;
  border-right: 0;
  color: #163b5b;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.reach-out:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(20, 66, 99, 0.28);
}

.legal-mark {
  margin: 6px 0 0;
  align-self: flex-end;
  font-size: 0.76rem;
  color: #5c7288;
  letter-spacing: 0.01em;
}

.training-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.training-hero h1 {
  margin-bottom: 8px;
}

.training-subhead {
  margin: 0 0 8px;
  color: #254762;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
}

.training-bullets {
  margin: 0 0 16px;
  width: min(980px, 92vw);
  color: #23445f;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.training-bullets span {
  display: block;
  margin: 0 0 6px;
}

.training-bullets span:last-child {
  margin-bottom: 0;
}

.paren-regular {
  font-weight: 400;
}

.delivery-title {
  margin: 16px 0 10px;
  color: #163552;
  font-size: clamp(1.2rem, 1.45vw, 1.45rem);
  font-weight: 700;
  text-align: center;
}

.training-page .reach-out {
  margin-bottom: 10px;
}

.training-hero .legal-mark {
  margin: 0;
  align-self: flex-end;
}

.training-footer {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.training-footer .legal-mark {
  width: 100%;
  margin: 0;
  text-align: right;
  font-size: 0.76rem;
}

.training-sections {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  align-items: stretch;
}

.opportunities-sections {
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
}

.training-panel {
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.92), rgba(251, 253, 255, 0.84));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(15, 39, 64, 0.08);
  text-align: left;
  padding: clamp(18px, 2.2vh, 24px) clamp(18px, 1.8vw, 24px);
  min-height: clamp(220px, 36vh, 420px);
}

.training-panel h2 {
  margin: 0 0 8px;
  color: #163552;
  font-size: clamp(1.25rem, 1.6vw, 1.7rem);
}

.training-panel p {
  margin: 0;
  color: #355068;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.4;
}

.training-panel h3 {
  margin: 14px 0 8px;
  color: #1d4565;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.training-panel ul {
  margin: 6px 0 0 18px;
  padding: 0;
  color: #355068;
}

.training-panel li {
  margin: 0 0 8px;
  line-height: 1.4;
}

.strategy-discuss-title {
  text-align: center;
}

.strategy-discuss-list {
  margin-left: 0;
  text-align: center;
  list-style-position: inside;
}

@media (max-width: 1024px) {
  .page-wrap {
    height: auto;
    max-height: none;
    min-height: 100svh;
  }

  .hero {
    grid-template-rows: auto;
    justify-items: stretch;
    text-align: left;
    gap: 14px;
  }

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

  .training-sections {
    grid-template-columns: 1fr;
  }

  .reach-out {
    min-width: 0;
    width: 100%;
  }

  .rate-banner {
    width: 100%;
  }

  .legal-mark {
    align-self: flex-start;
    margin-top: 10px;
  }

  .training-footer .legal-mark {
    text-align: left;
  }
}
