/* Theme 1.5.4: detailed services with a concise hero. */
.service-paths {
  width: min(1080px, 100%);
  margin: 84px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 30px;
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: 0 26px 70px rgba(29, 29, 31, .12);
  text-align: left;
}

.service-path {
  --accent: var(--brick);
  position: relative;
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  transition: background .25s, color .25s;
}

.service-path:last-child { border-right: 0; }
.service-path:before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: var(--accent); }
.service-path span { color: var(--accent); font-size: 11px; }
.service-path small { margin: auto 0 10px; color: #a1a1a6; font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.service-path strong { max-width: 210px; font-size: 23px; line-height: 1.08; letter-spacing: -.035em; }
.service-path i { position: absolute; right: 27px; bottom: 27px; color: var(--accent); font-size: 18px; font-style: normal; }
.service-path:hover { background: var(--cream); color: var(--charcoal); }
.service-path:hover small { color: var(--muted); }

.service-card { min-height: 590px; }
.service-copy { min-width: 0; }
.service-copy h3 { margin: auto 0 18px; }
.service-copy p { line-height: 1.5; }

.service-visual.offer-detail {
  min-height: 590px;
  padding: 46px;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
}

.service-visual.offer-detail:before { width: 220px; height: 220px; right: -110px; top: -110px; }
.service-visual.offer-detail:after { width: 150px; height: 150px; left: -75px; bottom: -75px; }

.offer-detail-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 35px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #d8d3ca);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 45px rgba(29, 29, 31, .09);
}

.offer-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.offer-detail h4 { margin: 10px 0 25px; font-size: clamp(26px, 2.7vw, 38px); line-height: 1; letter-spacing: -.045em; }
.offer-detail ul { margin: 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.offer-detail li { position: relative; padding-left: 22px; color: #3d3d40; font-size: 14px; line-height: 1.4; }
.offer-detail li:before { content: ""; position: absolute; top: .52em; left: 0; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.offer-meta { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.offer-meta p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.offer-meta strong { display: block; margin-bottom: 6px; color: var(--charcoal); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.offer-detail-inner > small { display: block; margin-top: 20px; color: var(--muted); font-size: 11px; }

.work { background: var(--paper); }
.work .section-heading { margin-bottom: 48px; }
.work-holding {
  min-height: 330px;
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 45px;
  background: #fff;
}

.work-holding h3 { max-width: 520px; margin-bottom: 16px; font-size: clamp(30px, 3.5vw, 48px); }
.work-holding p { max-width: 590px; margin: 0; color: var(--muted); font-size: 17px; }
.work-holding .button { white-space: nowrap; }
.work-mark { width: 150px; height: 150px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; transform: rotate(-3deg); }
.work-mark i { border-radius: 8px; background: var(--brick); }
.work-mark i:nth-child(2) { background: var(--ochre); }
.work-mark i:nth-child(3) { background: var(--sage); }
.work-mark i:nth-child(4) { background: var(--clay); }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { border-radius: 25px; overflow: hidden; display: flex; flex-direction: column; background: #fff; box-shadow: 0 18px 45px rgba(29, 29, 31, .07); }
.case-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.case-image img { width: 100%; height: 100%; object-fit: cover; }
.case-copy { flex: 1; padding: 30px; display: flex; flex-direction: column; }
.case-copy small { color: var(--brick); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.case-copy h3 { margin: 45px 0 17px; font-size: 32px; }
.case-copy p { margin: 0; color: var(--muted); }
.case-copy > strong { margin-top: auto; padding-top: 30px; font-size: 14px; }

.industry-card { grid-template-columns: 70px 1fr 1fr; }

.process-steps li > div { margin-top: 54px; }
.process-steps h3 { min-height: 64px; }
.process-steps p { min-height: 72px; }

.support-section { padding: 95px 0; background: var(--ochre); }
.support-grid { display: grid; grid-template-columns: .55fr 1.1fr 1fr; align-items: start; gap: 50px; }
.support-grid .eyebrow { color: var(--charcoal); }
.support-grid h2 { font-size: clamp(37px, 4vw, 56px); }
.support-grid p { max-width: 500px; margin: 0; font-size: 18px; line-height: 1.55; }

@media (max-width: 920px) {
  .service-paths { grid-template-columns: 1fr 1fr; }
  .service-path { min-height: 210px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .service-path:nth-child(2) { border-right: 0; }
  .service-path:nth-child(3), .service-path:nth-child(4) { border-bottom: 0; }
  .service-card, .service-card:nth-child(even) { grid-template-columns: 1fr; }
  .service-card:nth-child(even) .service-copy { order: initial; }
  .service-copy { min-height: 390px; }
  .service-visual.offer-detail { min-height: auto; }
  .work-holding { grid-template-columns: 120px 1fr; }
  .work-mark { width: 110px; height: 110px; }
  .work-holding .button { grid-column: 2; justify-self: start; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { display: grid; grid-template-columns: .85fr 1.15fr; }
  .case-image { aspect-ratio: auto; min-height: 300px; }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .support-grid .eyebrow { grid-column: 1 / -1; }
  .process-steps li > div { margin-top: 42px; }
}

@media (max-width: 580px) {
  .hero { padding-top: 76px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: 54px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .service-paths { margin-top: 54px; grid-template-columns: 1fr; border-radius: 22px; }
  .service-path { min-height: 150px; padding: 25px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .15) !important; }
  .service-path:last-child { border-bottom: 0 !important; }
  .service-path small { margin: 27px 0 7px; }
  .service-path i { right: 24px; bottom: 24px; }
  .service-copy h3, .service-copy p, .offer-detail-inner, .offer-meta { min-width: 0; overflow-wrap: anywhere; }
  .service-visual.offer-detail { padding: 20px; }
  .offer-detail-inner { padding: 25px; border-radius: 19px; }
  .offer-meta { grid-template-columns: 1fr; gap: 17px; }
  .work-holding { padding: 30px; grid-template-columns: 1fr; gap: 28px; }
  .work-mark { width: 90px; height: 90px; }
  .work-holding .button { grid-column: auto; width: 100%; }
  .case-card { display: flex; }
  .case-image { min-height: 240px; }
  .industry-card { grid-template-columns: 42px 1fr; }
  .industry-card p { grid-column: 2; }
  .support-grid { grid-template-columns: 1fr; gap: 26px; }
  .support-grid .eyebrow { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .service-path { transition: none; }
}
