:root {
  --ifo-navy: #183b5b;
  --ifo-navy-dark: #102f49;
  --ifo-gold: #c9a25a;
  --ifo-coral: #c8644a;
  --ifo-sky: #eaf3fb;
  --ifo-cream: #fbf7ed;
  --ifo-white: #ffffff;
  --ifo-ink: #292d31;
  --ifo-muted: #686d72;
  --ifo-line: #ddd8ce;
}

body.ifo-canvas {
  margin: 0;
  background: var(--ifo-cream);
}

.ifo-embed-frame {
  display: block;
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  margin: 0 calc(50% - 50vw);
  border: 0;
  background: var(--ifo-cream);
}

.ifo-embed-frame[data-ifo-embed="site"] {
  height: 100vh;
  min-height: 720px;
}

.ifo-canvas-main,
.ifo-canvas-main > .wp-block-post-content,
.ifo-page {
  margin: 0;
  padding: 0;
}

.ifo-page,
.ifo-intake {
  color: var(--ifo-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.ifo-page *,
.ifo-intake * {
  box-sizing: border-box;
}

.ifo-page h1,
.ifo-page h2,
.ifo-page h3,
.ifo-intake h1,
.ifo-intake h2,
.ifo-intake h3 {
  color: var(--ifo-navy);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.ifo-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 4.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 59, 91, 0.98);
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  color: #fff;
}

.ifo-site-header .ifo-brand {
  margin: 0;
  font-size: 1.15rem;
}

.ifo-site-header .ifo-brand a,
.ifo-site-header .wp-block-navigation-item__content {
  color: #fff;
  text-decoration: none;
}

.ifo-site-header .wp-block-navigation-item__content {
  font-size: 0.88rem;
  font-weight: 700;
}

.ifo-site-header .ifo-nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
}

.ifo-site-footer {
  gap: 2rem;
  background: var(--ifo-navy-dark);
  padding: 2rem clamp(1rem, 5vw, 5rem);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.ifo-site-footer p {
  margin: 0;
}

.ifo-site-footer strong {
  color: #fff;
}

.ifo-hero .wp-block-cover__inner-container {
  width: min(100% - 2rem, 74rem);
}

.ifo-hero h1 {
  max-width: 54rem;
  margin: 0.8rem 0 1.25rem;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.3rem);
  line-height: 0.98;
}

.ifo-hero .ifo-lede {
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.ifo-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--ifo-coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ifo-hero .ifo-eyebrow {
  color: #f0c97f;
}

.ifo-page .wp-block-button__link,
.ifo-intake button,
.ifo-forms-download {
  border-radius: 6px;
}

.ifo-page .wp-block-button__link {
  background: var(--ifo-coral);
  color: #fff;
  font-weight: 800;
}

.ifo-page .is-style-outline .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
}

.ifo-section {
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.ifo-section > .wp-block-heading {
  max-width: 50rem;
  margin-top: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.ifo-services {
  background: var(--ifo-cream);
}

.ifo-problem {
  background: #fff;
}

.ifo-problem > p:last-child {
  max-width: 48rem;
  color: var(--ifo-muted);
  font-size: 1.08rem;
}

.ifo-service-grid {
  align-items: stretch !important;
  margin-top: 2rem;
}

.ifo-service-card {
  height: 100%;
  border-top: 4px solid var(--ifo-gold);
  background: #fff;
  padding: 1.35rem;
}

.ifo-service-grid-secondary {
  max-width: 50rem;
}

.ifo-service-number {
  color: var(--ifo-coral);
  font-weight: 800;
}

.ifo-process {
  background: var(--ifo-sky);
}

.ifo-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  padding: 0;
  background: rgba(24, 59, 91, 0.18);
  counter-reset: ifo-step;
  list-style: none;
}

.ifo-steps li {
  min-height: 9rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 1.25rem;
  color: var(--ifo-navy);
  font-weight: 800;
  counter-increment: ifo-step;
}

.ifo-steps li::before {
  display: block;
  margin-bottom: 1rem;
  color: var(--ifo-coral);
  content: "0" counter(ifo-step);
}

.ifo-about {
  background: #fff;
}

.ifo-testimonials {
  background: #fff;
}

.ifo-quote-grid blockquote {
  height: 100%;
  margin: 0;
  border-top: 3px solid var(--ifo-coral);
  background: var(--ifo-cream);
  padding: 1.25rem;
}

.ifo-quote-grid cite {
  color: var(--ifo-navy);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.ifo-profile {
  max-width: 68rem;
  margin-top: 2.5rem;
}

.ifo-profile img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  object-position: center 22%;
}

.ifo-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.ifo-principles li {
  border-top: 1px solid var(--ifo-line);
  padding: 0.8rem 0.5rem 0.8rem 0;
  color: var(--ifo-navy);
  font-weight: 800;
}

.ifo-contact {
  background: var(--ifo-navy);
  color: rgba(255, 255, 255, 0.78);
}

.ifo-faq {
  background: var(--ifo-sky);
}

.ifo-faq details {
  max-width: 58rem;
  border-top: 1px solid rgba(24, 59, 91, 0.18);
  padding: 1rem 0;
}

.ifo-faq summary {
  color: var(--ifo-navy);
  font-weight: 800;
  cursor: pointer;
}

.ifo-faq details p {
  max-width: 48rem;
  color: var(--ifo-muted);
}

.ifo-contact h2 {
  color: #fff;
}

.ifo-intake {
  width: min(100% - 2rem, 70rem);
  margin: 2rem auto 5rem;
}

.ifo-intake-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  gap: 1rem 3rem;
  align-items: end;
  border-radius: 8px;
  background: var(--ifo-navy);
  padding: clamp(1.5rem, 4vw, 3rem);
  color: rgba(255, 255, 255, 0.78);
}

.ifo-intake-header .ifo-eyebrow,
.ifo-intake-header h1 {
  grid-column: 1;
}

.ifo-intake-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.ifo-intake-header > p:not(.ifo-eyebrow) {
  grid-column: 1;
  margin: 0;
}

.ifo-form-actions {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
}

.ifo-forms-download {
  display: inline-flex;
  background: var(--ifo-gold);
  padding: 0.8rem 1rem;
  color: var(--ifo-navy-dark);
  font-weight: 800;
  text-decoration: none;
}

.ifo-intake-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  margin: 1.25rem 0;
  border: 1px solid var(--ifo-line);
  background: #fff;
}

.ifo-progress-step {
  display: grid;
  gap: 0.1rem;
  border: 0;
  border-right: 1px solid var(--ifo-line);
  background: #fff;
  padding: 0.65rem;
  color: var(--ifo-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.ifo-progress-step span {
  color: var(--ifo-coral);
  font-size: 0.68rem;
}

.ifo-progress-step.is-active {
  background: var(--ifo-sky);
  color: var(--ifo-navy);
}

.ifo-progress-step.is-complete {
  background: #f4f8f1;
  color: #47724e;
}

.ifo-form-step {
  border: 1px solid var(--ifo-line);
  background: #fff;
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.ifo-step-heading {
  margin-bottom: 1.5rem;
}

.ifo-step-heading h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.ifo-step-heading p {
  margin: 0;
  color: var(--ifo-muted);
}

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

.ifo-form-field {
  min-width: 0;
}

.ifo-form-field.ifo-width-full,
.ifo-form-field[data-field-type="file"],
.ifo-form-field[data-field-type="textarea"] {
  grid-column: 1 / -1;
}

.ifo-form-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ifo-navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.ifo-form-field input,
.ifo-form-field select,
.ifo-form-field textarea {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid #cfd3d6;
  border-radius: 6px;
  background: #fff;
  padding: 0.65rem 0.75rem;
  color: var(--ifo-ink);
  font: inherit;
}

.ifo-form-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.ifo-form-field input:focus,
.ifo-form-field select:focus,
.ifo-form-field textarea:focus {
  outline: 3px solid rgba(201, 162, 90, 0.25);
  border-color: var(--ifo-gold);
}

.ifo-form-field.has-error input,
.ifo-form-field.has-error select,
.ifo-form-field.has-error textarea {
  border-color: #b42318;
}

.ifo-required,
.ifo-step-errors {
  color: #b42318;
}

.ifo-field-help {
  margin: 0.3rem 0 0;
  color: var(--ifo-muted);
  font-size: 0.78rem;
}

.ifo-step-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--ifo-line);
  padding-top: 1.25rem;
}

.ifo-button {
  border: 1px solid var(--ifo-navy);
  background: var(--ifo-navy);
  padding: 0.7rem 1.1rem;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ifo-back {
  border-color: var(--ifo-line);
  background: #fff;
  color: var(--ifo-navy);
}

.ifo-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.ifo-intake-status,
.ifo-test-notice {
  margin-top: 1rem;
  border-radius: 6px;
  padding: 0.9rem 1rem;
}

.ifo-intake-status:empty {
  display: none;
}

.ifo-intake-status.is-loading,
.ifo-test-notice {
  background: #fff7e8;
  color: #714b00;
}

.ifo-intake-status.is-success {
  background: #edf8ee;
  color: #285b31;
}

.ifo-intake-status.is-error {
  background: #fff0ee;
  color: #8a241d;
}

.ifo-intake-editor,
.ifo-step-editor,
.ifo-field-editor {
  font-family: Inter, system-ui, sans-serif;
}

.ifo-intake-editor {
  border: 1px solid var(--ifo-line);
  background: var(--ifo-cream);
  padding: 1.5rem;
}

.ifo-editor-heading {
  border-radius: 8px;
  background: var(--ifo-navy);
  padding: 1.5rem;
  color: #fff;
}

.ifo-editor-heading h2 {
  margin: 0.25rem 0;
  color: #fff;
}

.ifo-editor-kicker {
  color: var(--ifo-gold);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ifo-step-editor {
  margin: 1rem 0;
  border: 1px solid var(--ifo-line);
  background: #fff;
  padding: 1rem;
}

.ifo-field-editor {
  margin: 0.6rem 0;
  border-left: 3px solid var(--ifo-gold);
  background: #f7f8f9;
  padding: 0.8rem;
}

.ifo-field-editor input,
.ifo-field-editor select,
.ifo-field-editor textarea {
  width: 100%;
}

@media (max-width: 900px) {
  .ifo-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ifo-intake-header {
    grid-template-columns: 1fr;
  }

  .ifo-form-actions {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .ifo-hero {
    min-height: 38rem !important;
  }

  .ifo-service-grid,
  .ifo-profile {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .ifo-steps,
  .ifo-principles,
  .ifo-fields {
    grid-template-columns: 1fr;
  }

  .ifo-intake-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
