
/* ==========================================
   CQC ONE-PAGE LAYOUT
   ========================================== */

html {
  scroll-behavior: smooth;
}

/* Sidebar anchor destinations */
#overview,
#our-support,
#our-homes {
  scroll-margin-top: 25px;
}

/* Preserve the existing heading appearance */
.cqc-section-hero h2 {
  color: #ffffff;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.15;
  max-width: 850px;
  margin: 12px 0 20px;
}

/* Comfortable spacing between sections */
.cqc-section-hero.support-page-hero {
  padding-block: 85px;
}

.cqc-section-hero.homes-hero {
  padding-block: 75px;
}

/* Final contact and referral buttons */
.cqc-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}

.cqc-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 2px solid #092452;
  border-radius: 9px;
  background: transparent;
  color: #092452;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.cqc-secondary-button:hover {
  background: #092452;
  color: #ffffff;
}

.cqc-secondary-button:focus-visible {
  outline: 3px solid #57c9f3;
  outline-offset: 3px;
}

/* Mobile */
@media (max-width: 700px) {
  .cqc-section-hero.support-page-hero,
  .cqc-section-hero.homes-hero {
    padding-block: 60px;
  }

  .cqc-cta-actions {
    flex-direction: column;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cqc-secondary-button {
    transition: none;
  }
}
