:root {
  --bg: #f2eee6;
  --surface: #f7f4ee;
  --surface-strong: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: rgba(17, 24, 39, 0.14);
  --line-soft: rgba(17, 24, 39, 0.08);
  --brand: #12263f;
  --taupe: #8f8677;
  --taupe-soft: #d8d2c6;
  --brand-contrast: #f6f3ec;
  --shadow-soft: 0 20px 40px rgba(18, 38, 63, 0.08);
  --shadow-strong: 0 30px 80px rgba(15, 23, 39, 0.15);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% -8%, rgba(143, 134, 119, 0.26), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(18, 38, 63, 0.2), transparent 30%),
    linear-gradient(180deg, #f6f2ea 0%, #f2eee6 100%);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(18, 38, 63, 0.45);
  outline-offset: 3px;
}

h1,
h2,
h3,
.footer-title {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

p {
  margin: 0;
}

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

.container {
  width: min(var(--max-width), calc(100vw - 3rem));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section.muted {
  background: rgba(255, 255, 255, 0.46);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--taupe);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.intro,
.lead {
  max-width: 66ch;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: rgba(242, 238, 230, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(247, 244, 238, 0.9);
}

.header-inner {
  min-height: 5.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  max-width: 290px;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.desktop-nav a,
.mobile-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.text-link:hover {
  color: var(--brand);
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: var(--brand);
}

.header-cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.65rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  margin: 0.22rem 0;
}

.mobile-nav {
  display: none;
  padding: 0 1.5rem 1.2rem;
  flex-direction: column;
  gap: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav[data-open="true"] {
  display: flex;
}

.hero {
  padding-top: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2rem;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.5rem);
  max-width: 12ch;
  margin-bottom: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-aside {
  display: grid;
  gap: 1rem;
}

.logo-block,
.feature-card,
.panel,
.info-card,
.process-card,
.audience-card,
.service-card,
.problem-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.logo-block {
  padding: 1.6rem;
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.logo-block p {
  color: var(--muted);
}

.feature-card {
  padding: 1.5rem;
}

.feature-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.7rem;
}

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

.section h2 {
  font-size: clamp(1.8rem, 4.3vw, 3rem);
  margin-bottom: 1.2rem;
  max-width: 20ch;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

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

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

.health-highlight {
  border-top: 1px solid rgba(18, 38, 63, 0.09);
  border-bottom: 1px solid rgba(18, 38, 63, 0.09);
  background:
    radial-gradient(circle at 88% 12%, rgba(18, 38, 63, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(242, 238, 230, 0.78), rgba(247, 244, 238, 0.94));
}

.card-grid-process {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-card,
.service-card,
.process-card {
  padding: 1.5rem;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.problem-card:hover,
.service-card:hover,
.process-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 38, 63, 0.26);
  box-shadow: var(--shadow-strong);
}

.problem-card h3,
.service-card h3,
.process-card h3,
.panel h3 {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.problem-card p,
.service-card p,
.process-card p {
  color: var(--muted);
}

.problem-soft-cta {
  margin-top: 1.5rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.service-points {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
  margin-bottom: 0.95rem;
  list-style: none;
  padding: 0;
}

.service-points li {
  color: var(--muted);
  font-size: 0.94rem;
  position: relative;
  padding-left: 0.95rem;
}

.service-points li::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(18, 38, 63, 0.58);
  position: absolute;
  top: 0.57rem;
  left: 0;
}

.service-note {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.panel-stack {
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1.5rem;
}

.panel.soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 243, 236, 0.86));
}

.list {
  display: grid;
  gap: 0.7rem;
}

.list li {
  color: var(--muted);
  position: relative;
  padding-left: 1.15rem;
}

.list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--brand);
}

.tag-list {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.tag-list span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-size: 0.9rem;
}

.msp-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.cta {
  color: var(--brand-contrast);
  background:
    radial-gradient(circle at 18% 18%, rgba(241, 236, 226, 0.14), transparent 35%),
    radial-gradient(circle at 82% 0%, rgba(216, 210, 198, 0.2), transparent 34%),
    linear-gradient(160deg, #0f1727 0%, #16263c 100%);
}

.cta .eyebrow,
.cta p {
  color: rgba(246, 243, 236, 0.86);
}

.cta h2 {
  color: #f8f5ee;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.6rem;
  align-items: center;
}

.cta-actions {
  display: grid;
  justify-items: start;
  gap: 0.8rem;
}

.button {
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.92rem 1.25rem;
  transition: transform 170ms ease, background-color 170ms ease, color 170ms ease, border-color 170ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #f8f5ee;
  background: var(--brand);
  border-color: rgba(18, 38, 63, 0.75);
}

.button-primary:hover {
  background: #1c3353;
}

.button-secondary {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(18, 38, 63, 0.24);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.75);
}

.cta .button-secondary {
  color: #f2eee5;
  border-color: rgba(246, 243, 236, 0.3);
  background: rgba(246, 243, 236, 0.12);
}

.text-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18rem;
}

.cta .text-link {
  color: #dcd6ca;
}

.site-footer {
  background: #0d1422;
  color: #d9d4ca;
  padding: 2.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.4rem;
  align-items: start;
}

.footer-brand {
  max-width: 300px;
}

.footer-title {
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
  color: #f6f2eb;
}

.site-footer a {
  display: block;
  color: #d9d4ca;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.site-footer a:hover {
  color: #f6f2eb;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(217, 212, 202, 0.2);
  color: rgba(217, 212, 202, 0.8);
  font-size: 0.86rem;
}

.ambient {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  top: -11rem;
  right: -8rem;
  background: rgba(18, 38, 63, 0.32);
}

.ambient-two {
  bottom: -14rem;
  left: -8rem;
  background: rgba(143, 134, 119, 0.28);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .split,
  .cta-inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .container {
    width: min(var(--max-width), calc(100vw - 1.5rem));
  }

  .section {
    padding: 4.2rem 0;
  }

  .card-grid-problems,
  .card-grid-services,
  .card-grid-process {
    grid-template-columns: 1fr;
  }

  .brand {
    max-width: 220px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .problem-card,
  .service-card,
  .process-card {
    transition: none;
  }
}
