/* Commercial service-family landing — aligned with service_offering_detail / plans */

:root {
  --cff-navy: #243865;
  --cff-navy-dark: #1c2d50;
  --cff-gold: #e7ad4a;
  --cff-radius: 12px;
  --cff-shadow: 0 8px 28px rgba(36, 56, 101, 0.1);
}

.commercial-family-landing-page #service-offerings {
  scroll-margin-top: 5rem;
}

/* Hero */
.cff-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(36, 56, 101, 0.12);
  background: linear-gradient(
    145deg,
    rgba(36, 56, 101, 0.06) 0%,
    rgba(231, 173, 74, 0.06) 50%,
    #fafbfd 100%
  );
}

.cff-hero--has-media {
  background: #101827;
  min-height: clamp(280px, 42vw, 420px);
}

.cff-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.95);
}

.cff-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cff-hero--has-media .cff-hero__overlay {
  background: linear-gradient(
    105deg,
    rgba(16, 24, 39, 0.88) 0%,
    rgba(36, 56, 101, 0.65) 45%,
    rgba(16, 24, 39, 0.55) 100%
  );
}

.cff-hero__inner {
  position: relative;
  z-index: 1;
}

.cff-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  color: #5c677d;
}

.cff-hero--has-media .cff-hero__eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.cff-hero__title {
  font-weight: 800;
  line-height: 1.12;
  font-size: clamp(1.45rem, 2.2vw + 1rem, 2.35rem);
  color: var(--cff-navy);
  margin-bottom: 0.75rem;
  max-width: 38rem;
}

.cff-hero--has-media .cff-hero__title {
  color: var(--cff-gold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cff-hero__lead {
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 42rem;
  margin-bottom: 0;
  color: #3d4963;
}

.cff-hero--has-media .cff-hero__lead {
  color: rgba(255, 255, 255, 0.92);
}

.cff-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

/* Buttons */
.cff-btn-primary {
  font-weight: 700;
  border-radius: 999px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  border: 2px solid var(--cff-navy);
  background: var(--cff-navy);
  color: #fff !important;
}

.cff-btn-primary:hover,
.cff-btn-primary:focus {
  background: var(--cff-navy-dark);
  border-color: var(--cff-navy-dark);
  color: #fff !important;
}

.cff-btn-outline {
  font-weight: 700;
  border-radius: 999px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  border: 2px solid var(--cff-navy);
  background: transparent;
  color: var(--cff-navy) !important;
}

.cff-btn-outline:hover,
.cff-btn-outline:focus {
  background: rgba(36, 56, 101, 0.06);
  color: var(--cff-navy-dark) !important;
}

.cff-hero--has-media .cff-btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff !important;
}

.cff-hero--has-media .cff-btn-outline:hover,
.cff-hero--has-media .cff-btn-outline:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

/* Insight columns */
.cff-insights {
  background: #fff;
}

.cff-insight-panel {
  height: 100%;
  border: 1px solid rgba(36, 56, 101, 0.1);
  border-radius: var(--cff-radius);
  padding: 1.25rem 1.35rem;
  background: #fafbfd;
  box-shadow: 0 2px 12px rgba(36, 56, 101, 0.04);
}

.cff-insight-panel h3 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 0.85rem;
}

.cff-insight-panel ul,
.cff-insight-panel ol {
  margin-bottom: 0;
  padding-left: 1.1rem;
  color: #374151;
  font-size: 0.925rem;
  line-height: 1.55;
}

.cff-insight-panel li + li {
  margin-top: 0.35rem;
}

/* Offerings (included fragment) */
.commercial-family-landing-page .cff-offerings {
  background: #f4f6fa;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.commercial-family-landing-page .cff-offerings__head {
  margin-bottom: 1.5rem;
}

.commercial-family-landing-page .cff-offerings__title {
  color: var(--cff-navy);
  font-weight: 800;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.55rem);
  margin-bottom: 0.5rem;
}

.commercial-family-landing-page .cff-rule {
  width: 5rem;
  height: 4px;
  background: var(--cff-gold);
  border-radius: 2px;
  margin-bottom: 0.65rem;
}

.commercial-family-landing-page .cff-offerings__sub {
  margin-bottom: 0;
  max-width: 36rem;
}

.commercial-family-landing-page .commercial-offering-grid {
  margin-top: 0.25rem;
}

.commercial-family-landing-page .commercial-offering-card {
  border-radius: var(--cff-radius);
  border: 1px solid rgba(36, 56, 101, 0.1);
  box-shadow: var(--cff-shadow);
  overflow: hidden;
  background: #fff;
}

.commercial-family-landing-page .commercial-offering-card .course-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.commercial-family-landing-page .commercial-offering-card .course-details h3 {
  color: var(--cff-navy);
  font-weight: 800;
  font-size: 1.05rem;
}

.commercial-family-landing-page .commercial-offering-card-excerpt {
  flex: 1;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.5;
}

.commercial-family-landing-page .commercial-offering-card-actions {
  margin-top: auto;
  padding-top: 0.75rem;
}

.commercial-family-landing-page .commercial-offering-card-actions .cff-card-btn-primary {
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid var(--cff-navy);
  background: var(--cff-navy);
  color: #fff !important;
}

.commercial-family-landing-page .commercial-offering-card-actions .cff-card-btn-primary:hover {
  background: var(--cff-navy-dark);
  border-color: var(--cff-navy-dark);
  color: #fff !important;
}

.commercial-family-landing-page .commercial-offering-card-actions .cff-card-btn-outline {
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid var(--cff-navy);
  background: transparent;
  color: var(--cff-navy) !important;
}

.commercial-family-landing-page .commercial-offering-card-actions .cff-card-btn-outline:hover {
  background: rgba(36, 56, 101, 0.06);
  color: var(--cff-navy-dark) !important;
}

/* Bottom consultation strip */
.cff-consult-strip {
  background: linear-gradient(
    90deg,
    rgba(36, 56, 101, 0.06) 0%,
    rgba(231, 173, 74, 0.08) 50%,
    rgba(36, 56, 101, 0.06) 100%
  );
  border-top: 1px solid rgba(36, 56, 101, 0.08);
}

.cff-consult-strip p {
  font-size: 1rem;
}

.cff-consult-strip a {
  font-weight: 700;
  color: var(--cff-navy);
}

.cff-consult-strip a:hover {
  color: var(--cff-navy-dark);
}
