:root {
  --health-bg: #102c33;
  --health-bg-deep: #071c24;
  --health-ink: #f2f8f6;
  --health-muted: #a8c5c2;
  --health-smoke: #164d60;
  --coral: #ee6352;
  --teal: #6ba292;
  --purple: #8e94f2;
  --white: #ffffff;
  --font-body:
    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--health-bg-deep);
  color: var(--health-ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.cto-page {
  min-height: 100vh;
  overflow: hidden;
}

/* ── Hero ─────────────────────────────────────────── */

.cto-hero {
  position: relative;
  min-height: 84vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 7rem);
  background:
    radial-gradient(
      circle at 80% 12%,
      rgba(25, 170, 139, 0.18),
      transparent 24rem
    ),
    radial-gradient(
      circle at 18% 82%,
      rgba(142, 148, 242, 0.14),
      transparent 28rem
    ),
    linear-gradient(180deg, #123843 0%, var(--health-bg-deep) 100%);
}

.cto-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 68%,
    transparent 100%
  );
}

.cto-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.cto-hero__copy h1 {
  max-width: 780px;
  color: var(--health-ink);
  font-size: clamp(3.1rem, 6.8vw, 6.4rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 1.75rem;
}

.cto-hero__copy h1 span {
  font-weight: 800;
}

.cto-hero__copy p:not(.cto-kicker) {
  max-width: 700px;
  color: rgba(232, 240, 239, 0.75);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.8;
}

/* ── Panel (hero sidebar) ──────────────────────────── */

.cto-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(140, 170, 179, 0.18);
  border-radius: 28px;
  background: rgba(2, 38, 49, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.cto-panel img {
  display: block;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(232, 240, 239, 0.3);
  margin-bottom: 1.5rem;
}

.cto-panel span {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.cto-panel p {
  color: rgba(214, 226, 226, 0.72);
  line-height: 1.75;
}

/* ── Shared section layout ─────────────────────────── */

.cto-kicker {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cto-services,
.cto-form-section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 7rem);
}

/* ── Services ─────────────────────────────────────── */

.cto-services {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
  background: #071c24;
}

.cto-services h2 {
  color: var(--health-ink);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1;
}

.cto-services__intro {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.cto-services__list {
  display: grid;
  border-top: 1px solid rgba(140, 170, 179, 0.18);
}

.cto-services__list div {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(140, 170, 179, 0.18);
}

.cto-services__list span {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.cto-services__list p {
  color: rgba(214, 226, 226, 0.66);
  line-height: 1.75;
}

/* ── Enquiry form ─────────────────────────────────── */

.cto-form-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  scroll-margin-top: 1rem;
  background:
    radial-gradient(
      circle at 78% 20%,
      rgba(142, 148, 242, 0.16),
      transparent 24rem
    ),
    linear-gradient(180deg, #071c24 0%, var(--health-bg-deep) 100%);
}

.cto-form-section__copy {
  max-width: 560px;
}

.cto-form-section__copy h2 {
  color: var(--health-ink);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.cto-form-section__copy p:not(.cto-kicker) {
  color: rgba(214, 226, 226, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.cto-form {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(140, 170, 179, 0.2);
  border-radius: 28px;
  background: rgba(24, 74, 88, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.cto-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cto-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
}

.cto-form label em {
  color: rgba(232, 240, 239, 0.58);
  font-style: normal;
  font-weight: 400;
}

.cto-form input,
.cto-form textarea {
  width: 100%;
  border: 1px solid rgba(140, 170, 179, 0.08);
  border-radius: 14px;
  background: rgba(2, 38, 49, 0.8);
  color: var(--health-ink);
  font: inherit;
  font-weight: 400;
  outline: none;
  padding: 0.95rem 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.cto-form textarea {
  min-height: 112px;
  resize: vertical;
}

.cto-form input::placeholder,
.cto-form textarea::placeholder {
  color: rgba(214, 226, 226, 0.36);
}

.cto-form input:focus,
.cto-form textarea:focus {
  border-color: rgba(142, 148, 242, 0.8);
  background: rgba(2, 38, 49, 0.95);
  box-shadow: 0 0 0 3px rgba(142, 148, 242, 0.16);
}

.cto-form__submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  color: #071c24;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font: inherit;
  font-weight: 800;
  transition:
    transform 0.2s,
    filter 0.2s;
}

.cto-form__submit:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.cto-form__submit:disabled {
  cursor: wait;
  filter: saturate(0.72);
  opacity: 0.72;
  transform: none;
}

.cto-form__note {
  color: rgba(214, 226, 226, 0.58);
  font-size: 0.84rem;
  line-height: 1.5;
  margin-top: 1rem;
  text-align: center;
}

/* ── Thanks page ──────────────────────────────────── */

.cto-thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 5rem);
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(142, 148, 242, 0.16),
      transparent 28rem
    ),
    radial-gradient(
      circle at 14% 74%,
      rgba(107, 162, 146, 0.12),
      transparent 24rem
    ),
    linear-gradient(180deg, #082f3a 0%, var(--health-bg-deep) 72%);
}

.cto-thanks__panel {
  width: min(720px, 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(140, 170, 179, 0.2);
  border-radius: 28px;
  background: rgba(24, 74, 88, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.cto-thanks__panel h1 {
  color: var(--health-ink);
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.cto-thanks__panel p:not(.cto-kicker) {
  color: rgba(214, 226, 226, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.cto-thanks__panel a {
  color: var(--health-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ── Responsive ───────────────────────────────────── */

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

@media (max-width: 900px) {
  .cto-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
  }

  .cto-hero__copy h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .cto-services,
  .cto-form-section {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
  }

  .cto-services__intro {
    position: static;
  }

  .cto-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-height: 500px) {
  .cto-hero {
    min-height: auto;
  }
}
