:root {
  --cp-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body.cp-page { margin: 0; font-family: var(--cp-font); }
#cp-content { min-height: 55vh; outline: none; }
/* The home content retains its original styles and layout. */
body.cp-page:not(.cp-home) { --text-main: var(--cp-text); --text-muted: var(--cp-muted); }
body.cp-page:not(.cp-home) #cp-content { font-family: var(--cp-font); }
body.cp-page:not(.cp-home) #cp-content :is(input,select,textarea,button) { font-family: inherit; }
body.cp-page:not(.cp-home) #cp-content :is(.btn-primary,.cta-button,.btn-register,.professional-btn-primary) { background: var(--cp-gradient); border-color: transparent; color: #fff; }
body.cp-page:not(.cp-home) #cp-content :is(.btn-primary,.cta-button,.btn-register,.professional-btn-primary):hover { background: var(--cp-gradient-hover); }
body.cp-page:not(.cp-home) #cp-content :is(.hero,.hero-section,.registration-hero) { margin-top: 0; }
.cp-empty-state { max-width: 900px; margin: auto; padding: 100px 24px; color: var(--cp-text); }
.cp-empty-state h1 { font-size: clamp(2rem,5vw,3.5rem); font-weight: 700; line-height: 1.12; margin: 20px 0; }
.cp-empty-state p { margin: 16px 0; line-height: 1.7; }
.cp-eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--cp-muted); font-size: 13px; font-weight: 700; }
#cp-content .cp-button { display: inline-flex; padding: 12px 22px; margin: 12px 20px 12px 0; border-radius: 8px; background: linear-gradient(100deg,var(--cp-blue),var(--cp-cyan)); color: white; font-weight: 600; text-decoration: none; }
#cp-content .cp-enquiry { display: grid; gap: 10px; }
#cp-content .cp-enquiry label { font-size: 14px; font-weight: 600; margin-top: 8px; }
#cp-content .cp-enquiry :is(input,select,textarea) { width: 100%; padding: 12px; border: 1px solid var(--cp-border); border-radius: 8px; background: white; color: var(--cp-text); }
#cp-content .cp-enquiry :is(input,select,textarea):focus { outline: 2px solid var(--cp-blue); outline-offset: 2px; }
#cp-content .cp-form-status { padding: 16px; background: #ecfdf5; color: #166534; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Hero media uses bounded proportions rather than text-dependent pixel heights. */
body.cp-managed-services #cp-content .cp-hero-media { min-width: 0; align-self: center; }
body.cp-managed-services #cp-content #image-container { aspect-ratio: 4 / 3; }
body.cp-managed-services #cp-content #image-container img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.cp-software-development #cp-content .cp-hero-media { width: 100%; min-width: 0; }
body.cp-software-development #cp-content .cp-hero-media img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center; }
body.cp-job-application-concierge #cp-content > section:first-of-type img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 1023px) {
  body.cp-managed-services #cp-content .cp-hero-image-badge { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 12px; gap: 12px; }
}
