/* ═══════════════════════════════════════════
   Contact Page v2 — Light Theme, Semantic
   ═══════════════════════════════════════════ */

:root {
  --ct-accent: #111318;
  --ct-accent-soft: rgba(17, 19, 24, 0.06);
  --ct-accent-border: rgba(17, 19, 24, 0.22);
  --ct-bg: #ffffff;
  --ct-bg-alt: #f8f9fa;
  --ct-ink: #111318;
  --ct-copy: rgba(17, 19, 24, 0.6);
  --ct-copy-soft: rgba(17, 19, 24, 0.42);
  --ct-line: rgba(17, 23, 20, 0.08);
  --ct-line-strong: rgba(17, 23, 20, 0.14);
  --ct-input-bg: #f8f9fa;
  --ct-input-border: rgba(17, 23, 20, 0.12);
  --ct-shadow-card:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 16px rgba(0, 0, 0, 0.04);
  --ct-shadow-elevated:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.03);
  --ct-max: 1200px;
  --ct-sans: "SF Pro Display", "SF Pro Text", "SF Pro", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  --ct-mono: "IBM Plex Mono", "SF Mono", monospace;
  --ct-ease: cubic-bezier(0.22, 0.72, 0.14, 1);
}

/* ── Base ── */

.ct-page {
  color: var(--ct-ink);
  background: var(--ct-bg);
  font-family: var(--ct-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

.ct-w {
  width: min(var(--ct-max), calc(100% - 48px));
  margin: 0 auto;
}

/* ── Reveal Animation ── */

.ct-r {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ct-ease), transform 700ms var(--ct-ease);
}

.ct-r.is-visible {
  opacity: 1;
  transform: none;
}

.ct-r[data-d="1"] { transition-delay: 100ms; }
.ct-r[data-d="2"] { transition-delay: 200ms; }
.ct-r[data-d="3"] { transition-delay: 300ms; }
.ct-r[data-d="4"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .ct-r { opacity: 1; transform: none; transition: none; }
}

/* ── Label (kicker) ── */

.ct-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--ct-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ct-accent);
}

.ct-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ct-accent);
}

/* ── Buttons ── */

.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s var(--ct-ease), background-color 0.22s ease,
    box-shadow 0.3s ease, border-color 0.22s ease;
}

.ct-btn--primary {
  color: #fff;
  background: var(--ct-accent);
  border: 1px solid transparent;
}

.ct-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(17, 19, 24, 0.12);
}

.ct-btn--secondary {
  color: var(--ct-ink);
  border: 1px solid var(--ct-line-strong);
  background: var(--ct-bg);
}

.ct-btn--secondary:hover {
  transform: translateY(-2px);
  border-color: var(--ct-ink);
}

/* ═══════════════════════════════════════════
   S1: HERO — Intent + Trust
   ═══════════════════════════════════════════ */

.ct-hero {
  position: relative;
  padding: clamp(140px, 16vw, 200px) 0 clamp(72px, 8vw, 100px);
  background: var(--ct-bg);
  color: var(--ct-ink);
  overflow: hidden;
}

.ct-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.ct-hero__copy {
  max-width: 700px;
}

.ct-hero__title {
  margin: 0;
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--ct-ink);
}

.ct-hero__sub {
  max-width: 50ch;
  margin: 18px auto 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ct-copy);
}

.ct-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

/* Trust stats */
.ct-hero__trust {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--ct-line);
  border-bottom: 1px solid var(--ct-line);
  width: 100%;
  max-width: 560px;
}

.ct-hero__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--ct-copy-soft);
}

.ct-hero__trust-item strong {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ct-ink);
}

/* Certification badges */
.ct-hero__certs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ct-hero__certs-label {
  font-family: var(--ct-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ct-copy-soft);
  margin-right: 4px;
}

.ct-cert-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--ct-line);
  border-radius: 6px;
  font-family: var(--ct-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ct-copy);
  background: var(--ct-bg-alt);
}

/* ═══════════════════════════════════════════
   S2: ROUTES — Self-Segmentation
   ═══════════════════════════════════════════ */

.ct-routes {
  padding: 0 0 clamp(72px, 8vw, 100px);
  background: var(--ct-bg);
}

.ct-routes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ct-route-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 28px 24px;
  border: 1px solid var(--ct-line);
  border-radius: 16px;
  background: var(--ct-bg);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: var(--ct-shadow-card);
  transition: transform 300ms var(--ct-ease), box-shadow 300ms ease,
    border-color 300ms ease;
}

.ct-route-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ct-shadow-elevated);
}

.ct-route-card.is-selected {
  border-color: var(--ct-accent-border);
  background: rgba(30, 106, 94, 0.03);
}

.ct-route-card__badge {
  display: inline-block;
  font-family: var(--ct-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ct-accent);
  margin-bottom: 14px;
}

.ct-route-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ct-ink);
}

.ct-route-card__text {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ct-copy);
  flex-grow: 1;
}

.ct-route-card__arrow {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--ct-copy-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}

.ct-route-card:hover .ct-route-card__arrow {
  color: var(--ct-accent);
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════
   S3: FORM — Progressive Disclosure Brief
   ═══════════════════════════════════════════ */

.ct-form-section {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--ct-bg-alt);
  border-top: 1px solid var(--ct-line);
}

.ct-form-header {
  text-align: center;
  margin-bottom: 48px;
}

.ct-form-header__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--ct-ink);
}

.ct-form-header__sub {
  margin: 14px auto 0;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ct-copy);
}

/* Form wrapper */
.ct-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.ct-form__card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--ct-bg);
  border: 1px solid var(--ct-line);
  border-radius: 20px;
  box-shadow: var(--ct-shadow-card);
  transition: box-shadow 0.4s ease;
}

.ct-form__card.is-focused {
  box-shadow: 0 0 0 3px var(--ct-accent-soft), var(--ct-shadow-elevated);
}

/* Fieldset & legend */
.ct-form__group {
  border: none;
  padding: 0;
  margin: 0;
}

.ct-form__group + .ct-form__group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ct-line);
}

.ct-form__group-legend {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  font-family: var(--ct-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ct-accent);
  padding: 0;
}

/* Conditional field groups */
.ct-form__group--conditional {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 400ms var(--ct-ease), opacity 300ms ease,
    margin 300ms ease, padding 300ms ease;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.ct-form__group--conditional.is-active {
  opacity: 1;
  margin-top: 24px !important;
  padding-top: 24px !important;
  border-top: 1px solid var(--ct-line) !important;
}

/* Grid */
.ct-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Field group */
.ct-fg {
  display: grid;
  gap: 7px;
}

.ct-fg--full {
  grid-column: 1 / -1;
}

.ct-fg__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ct-copy);
}

.ct-fg__input,
.ct-fg__select,
.ct-fg__textarea {
  width: 100%;
  border: 1px solid var(--ct-input-border);
  border-radius: 10px;
  padding: 13px 15px;
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ct-ink);
  background: var(--ct-input-bg);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.ct-fg__input::placeholder,
.ct-fg__textarea::placeholder {
  color: rgba(17, 19, 24, 0.3);
}

.ct-fg__input:focus,
.ct-fg__select:focus,
.ct-fg__textarea:focus {
  border-color: var(--ct-accent);
  box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.1);
  background: #fff;
}

.ct-fg__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.25L7 6.25L13 1.25' stroke='rgba(17,19,24,0.35)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.ct-fg__textarea {
  min-height: 120px;
  resize: vertical;
}

/* Message area (standalone, outside fieldsets) */
.ct-form__message {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ct-line);
}

/* GDPR consent */
.ct-form__consent {
  margin-top: 20px;
}

.ct-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ct-copy);
}

.ct-consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ct-consent__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--ct-input-border);
  border-radius: 5px;
  background: var(--ct-input-bg);
  transition: background 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.ct-consent input:checked + .ct-consent__check {
  background: var(--ct-accent);
  border-color: var(--ct-accent);
}

.ct-consent input:checked + .ct-consent__check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ct-consent input:focus-visible + .ct-consent__check {
  box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.1);
}

.ct-consent__text a {
  color: var(--ct-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ct-form__consent.is-error .ct-consent__check {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Form footer */
.ct-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ct-line);
}

.ct-form__note {
  margin: 0;
  max-width: 42ch;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ct-copy-soft);
}

/* Submit */
.ct-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: none;
  border-radius: 12px;
  background: var(--ct-accent);
  color: #fff;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ct-ease), box-shadow 0.3s ease;
}

.ct-form__submit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.ct-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(17, 19, 24, 0.14);
}

.ct-form__submit.is-sending {
  opacity: 0.6;
  pointer-events: none;
}

.ct-form__submit.is-sent {
  background: #16a34a;
}

/* Post-submit "what happens next" */
.ct-form__next {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ct-copy-soft);
}

/* ═══════════════════════════════════════════
   S4: ENGAGE — Process Timeline
   ═══════════════════════════════════════════ */

.ct-engage {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--ct-bg);
  border-top: 1px solid var(--ct-line);
}

.ct-engage__header {
  margin-bottom: 48px;
}

.ct-engage__title {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ct-ink);
  max-width: 16ch;
}

.ct-engage__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.ct-engage__step {
  padding: 24px 20px 24px 0;
  border-top: 2px solid var(--ct-line);
}

.ct-engage__step:first-child {
  border-top-color: var(--ct-accent);
}

.ct-engage__num {
  display: block;
  font-family: var(--ct-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ct-accent);
  margin-bottom: 14px;
}

.ct-engage__step h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ct-ink);
}

.ct-engage__step p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ct-copy);
}

/* ═══════════════════════════════════════════
   S5: OFFICE — Trust Details
   ═══════════════════════════════════════════ */

.ct-office {
  padding: clamp(72px, 10vw, 100px) 0;
  background: var(--ct-bg-alt);
  border-top: 1px solid var(--ct-line);
}

.ct-office__header {
  margin-bottom: 40px;
}

.ct-office__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ct-ink);
}

.ct-office__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ct-office__card {
  padding: 28px 24px;
  background: var(--ct-bg);
  border: 1px solid var(--ct-line);
  border-radius: 16px;
  transition: box-shadow 300ms ease;
}

.ct-office__card:hover {
  box-shadow: var(--ct-shadow-card);
}

.ct-office__label {
  margin: 0 0 14px;
  font-family: var(--ct-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ct-accent);
}

.ct-office__value {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--ct-ink);
}

.ct-office__value a {
  color: var(--ct-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ct-office__value a:hover {
  color: var(--ct-accent);
}

.ct-office__overlap {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--ct-line);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ct-accent);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.ct-footer {
  background: #0e1117;
  color: rgba(255, 255, 255, 0.72);
}

.ct-footer__accent {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.ct-footer .ct-w {
  padding: 48px 0 34px;
}

.ct-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ct-footer__logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ct-footer__tagline {
  margin: 14px 0 0;
  max-width: 30ch;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.42);
}

.ct-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.ct-footer__social-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ct-footer__social-link:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.14);
}

.ct-footer__heading {
  margin: 0 0 8px;
  font-family: var(--ct-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.32);
}

.ct-footer__col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.ct-footer__col a,
.ct-footer__col span {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ct-footer__col a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.ct-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
}

.ct-footer__bottom p,
.ct-footer__legal a {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.ct-footer__legal {
  display: flex;
  gap: 18px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .ct-routes__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .ct-engage__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .ct-engage__step {
    padding-right: 0;
  }

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

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

@media (max-width: 760px) {
  .ct-w {
    width: min(var(--ct-max), calc(100% - 32px));
  }

  .ct-hero {
    padding-top: 120px;
  }

  .ct-hero__trust {
    gap: 32px;
  }

  .ct-form__card {
    padding: 24px;
  }

  .ct-form__grid {
    grid-template-columns: 1fr;
  }

  .ct-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ct-engage__timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ct-engage__step {
    border-top-width: 0;
    border-left: 2px solid var(--ct-line);
    padding: 0 0 28px 20px;
  }

  .ct-engage__step:first-child {
    border-left-color: var(--ct-accent);
    border-top: none;
  }

  .ct-office__grid,
  .ct-footer__grid {
    grid-template-columns: 1fr;
  }

  .ct-footer__bottom {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .ct-hero__title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .ct-hero__trust {
    gap: 24px;
  }

  .ct-hero__trust-item strong {
    font-size: 1.2rem;
  }

  .ct-btn,
  .ct-form__submit {
    width: 100%;
    justify-content: center;
  }

  .ct-hero__actions {
    flex-direction: column;
  }
}
