/* ============================================================
   SERVICE PAGE STYLES — Faulkner HR Solutions
   Extends styles.css for individual service landing pages
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────── */
.sp-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 80px;
  align-items: start;
}

@media (max-width: 1024px) {
  .sp-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Main Content ────────────────────────────────────────── */
.sp-main {}

.sp-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--light-gray);
}

.sp-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sp-h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.25;
  position: relative;
  padding-bottom: 16px;
}

.sp-h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.sp-main p {
  color: #4A5A6A;
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 16px;
}

.sp-main p:last-child {
  margin-bottom: 0;
}

/* ── Callout Box ─────────────────────────────────────────── */
.sp-callout {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.97rem;
  color: #3A4A5A;
  line-height: 1.7;
}

/* ── Stats Row ───────────────────────────────────────────── */
.sp-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

@media (max-width: 640px) {
  .sp-stat-row {
    grid-template-columns: 1fr;
  }
}

.sp-stat {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}

.sp-stat__number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.sp-stat__label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ── Process Steps ───────────────────────────────────────── */
.sp-process {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 28px 0;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sp-process__step {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--light-gray);
  align-items: flex-start;
  transition: background 0.2s;
}

.sp-process__step:last-child {
  border-bottom: none;
}

.sp-process__step:hover {
  background: var(--off-white);
}

.sp-process__num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 40px;
  padding-top: 2px;
}

.sp-process__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.sp-process__text {
  font-size: 0.9rem;
  color: #5A6A7A;
  line-height: 1.65;
  margin: 0 !important;
}

/* ── Feature List ────────────────────────────────────────── */
.sp-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.sp-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-feature:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(196,154,60,0.08);
}

.sp-feature__icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-feature__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
}

.sp-feature__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.sp-feature__text {
  font-size: 0.88rem;
  color: #5A6A7A;
  line-height: 1.65;
  margin: 0 !important;
}

/* ── Industries ──────────────────────────────────────────── */
.sp-industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .sp-industries {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sp-industry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
}

.sp-industry svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  flex-shrink: 0;
}

/* ── Case Study ──────────────────────────────────────────── */
.sp-case-study {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 8px;
}

.sp-case-study__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.sp-case-study__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp-case-study__block {
  border-radius: var(--radius);
  padding: 24px;
}

.sp-case-study__block--problem {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.sp-case-study__block--intervention {
  background: rgba(196,154,60,0.08);
  border: 1px solid rgba(196,154,60,0.2);
}

.sp-case-study__block--outcome {
  background: rgba(27,58,82,0.5);
  border: 1px solid rgba(196,154,60,0.3);
}

.sp-case-study__block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.sp-case-study__block p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75) !important;
  line-height: 1.75;
  margin: 0 !important;
}

.sp-case-study__list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.sp-case-study__list li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sp-case-study__list li:last-child {
  border-bottom: none;
}

.sp-case-study__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── Related Services ────────────────────────────────────── */
.sp-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .sp-related {
    grid-template-columns: 1fr;
  }
}

.sp-related__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sp-related__card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(27,58,82,0.08);
  transform: translateY(-2px);
}

.sp-related__icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-related__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

.sp-related__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.sp-related__arrow {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
}

/* ── CTA Section ─────────────────────────────────────────── */
.sp-cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
}

.sp-cta-section .eyebrow {
  color: var(--gold);
}

.sp-cta-section__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  margin: 12px 0 16px;
  line-height: 1.25;
}

.sp-cta-section__text {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 28px;
}

.sp-cta-section__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sp-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1024px) {
  .sp-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .sp-sidebar {
    grid-template-columns: 1fr;
  }
}

.sp-sidebar__card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--light-gray);
}

.sp-sidebar__card--navy {
  background: var(--navy);
  border-color: var(--navy);
}

.sp-sidebar__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
}

.sp-sidebar__text {
  font-size: 0.88rem;
  color: #5A6A7A;
  line-height: 1.65;
  margin-bottom: 16px;
}

.sp-sidebar__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  justify-content: center;
  padding: 10px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--light-gray);
  transition: border-color 0.2s;
}

.sp-sidebar__phone:hover {
  border-color: var(--navy);
}

.sp-sidebar__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-sidebar__links-item {
  border-bottom: 1px solid var(--light-gray);
}

.sp-sidebar__links-item:last-child {
  border-bottom: none;
}

.sp-sidebar__links-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.88rem;
  color: #4A5A6A;
  text-decoration: none;
  transition: color 0.2s;
}

.sp-sidebar__links-item a::after {
  content: '→';
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
}

.sp-sidebar__links-item a:hover {
  color: var(--navy);
}

.sp-sidebar__links-item a:hover::after {
  opacity: 1;
}

.sp-sidebar__links-item--active a {
  color: var(--navy);
  font-weight: 700;
}

.sp-sidebar__links-item--active a::after {
  opacity: 1;
}

/* ── Ordered / Unordered Lists in sp-main ────────────────── */
.sp-main ul:not(.sp-sidebar__links):not(.sp-case-study__list) {
  padding-left: 0;
  list-style: none;
  margin: 16px 0;
}

.sp-main ul:not(.sp-sidebar__links):not(.sp-case-study__list) li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.97rem;
  color: #4A5A6A;
  line-height: 1.7;
  border-bottom: 1px solid var(--light-gray);
}

.sp-main ul:not(.sp-sidebar__links):not(.sp-case-study__list) li:last-child {
  border-bottom: none;
}

.sp-main ul:not(.sp-sidebar__links):not(.sp-case-study__list) li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── Table of Contents (optional) ───────────────────────── */
.sp-toc {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--light-gray);
  margin-bottom: 40px;
}

.sp-toc__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 12px;
}

.sp-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.sp-toc__list li {
  counter-increment: toc;
  padding: 6px 0;
  border-bottom: 1px solid var(--light-gray);
}

.sp-toc__list li:last-child {
  border-bottom: none;
}

.sp-toc__list a {
  font-size: 0.88rem;
  color: #4A5A6A;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.sp-toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 24px;
}

.sp-toc__list a:hover {
  color: var(--navy);
}

/* ── Insights redirect page ──────────────────────────────── */
.insights-redirect {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 0;
}

.insights-redirect__icon {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.insights-redirect__icon svg {
  width: 36px;
  height: 36px;
  fill: var(--gold);
}

/* ============================================================
   LANDING PAGE NARRATIVE COMPONENTS
   ============================================================ */

.lp-narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.lp-narrative-grid--reverse {
  direction: rtl;
}

.lp-narrative-grid--reverse > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .lp-narrative-grid,
  .lp-narrative-grid--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
  }
}

.lp-stage-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.lp-narrative-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.lp-narrative-callout {
  border-radius: 12px;
  padding: 40px;
}

.lp-callout--problem {
  background: #f0f4f8;
  border-left: 4px solid var(--navy);
}

.lp-callout--escalation {
  background: #fff8f0;
  border-left: 4px solid #c0392b;
}

.lp-callout__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.lp-callout--problem .lp-callout__icon {
  background: rgba(27, 58, 82, 0.1);
  color: var(--navy);
}

.lp-callout--escalation .lp-callout__icon {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.lp-callout__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.lp-callout__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-callout__list li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: relative;
  line-height: 1.5;
}

.lp-callout__list li:last-child {
  border-bottom: none;
}

.lp-callout__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Services full grid for industry pages */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .services-full-grid {
    grid-template-columns: 1fr;
  }
}

.service-full-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  border-top: 4px solid var(--gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-full-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27,58,82,0.1);
}

.service-full-card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.service-full-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(27,58,82,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}

.service-full-card__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--navy);
}

.service-full-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.service-full-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}

.service-full-card__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-full-card__cta {
  margin-top: auto;
}

/* Location page stat cards */
.lp-location-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

@media (max-width: 700px) {
  .lp-location-stats {
    grid-template-columns: 1fr;
  }
}

.lp-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  border-top: 3px solid var(--gold);
}

.lp-stat-card__number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.lp-stat-card__label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Location page area links */
.lp-area-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .lp-area-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .lp-area-links {
    grid-template-columns: 1fr;
  }
}

.lp-area-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lp-area-link:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(196,154,60,0.1);
}

.lp-area-link::after {
  content: '→';
  color: var(--gold);
}

.page-hero__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-hero__text {
  flex: 1;
  max-width: 650px;
}

.page-hero__grid {
  display: flex;
  align-items: flex-start;
}

.page-hero__text {
  flex: 0 1 700px;
  max-width: 700px;
}

.page-hero__image {
  flex: 0 1 420px;
  display: flex;
  justify-content: flex-end;
  align-self: flex-start;
  margin-top: 0;
  transform: translateY(-6px);
}

.page-hero__image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

@media (max-width: 900px) {
  .page-hero__grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .page-hero__text {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .page-hero__image {
    justify-content: center;
    align-self: center;
    width: 100%;
    margin-top: 0;
    transform: none;
  }

  .page-hero__image img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .page-hero {
    padding-top: 48px;
    padding-bottom: 48px;
    min-height: auto;
  }

  .page-hero__content {
    min-height: auto;
  }
}

.sp-main p a,
.sp-main li a,
.sp-callout a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 154, 60, 0.5);
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.sp-main p a:hover,
.sp-main li a:hover,
.sp-callout a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.sp-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px 0;
}

.sp-list li {
  font-size: 0.95rem;
  color: #4A5A6A;
  line-height: 1.7;
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--light-gray);
}

.sp-list li:last-child {
  border-bottom: none;
}

.sp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.sp-list li strong {
  color: var(--navy);
  font-weight: 600;
}
