/*
 * Core services v2 – polished, compact service overview on the homepage.
 * Scoped exclusively to #services.core-v2. No image sizing rules or
 * overrides for the existing hero, "why choose us", article, or footer.
 */
#services.core-v2 { isolation: isolate; scroll-margin-top: 110px; }
#services.core-v2,
#services.core-v2 *,
#services.core-v2 *::before,
#services.core-v2 *::after { box-sizing: border-box; }
#services.core-v2 .core-v2__shell {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 24px;
  background: #f5f8fc;
  box-shadow: 0 18px 40px rgba(13, 40, 75, .09);
}
#services.core-v2 .core-v2__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 24px 28px 23px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse 56% 150% at 102% -37%, rgba(65, 119, 163, .43), transparent 75%),
              linear-gradient(120deg, #0b1e32 0%, #112d48 64%, #0c2036 100%);
}
#services.core-v2 .core-v2__head::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ab8044 0%, #f5d4a1 50%, #a5804b 100%);
}
#services.core-v2 .core-v2__head::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(240, 219, 180, .10);
  border-radius: 50%;
  top: -155px;
  right: 120px;
  box-shadow: 0 0 0 42px rgba(242, 224, 187, .025), 0 0 0 85px rgba(242, 224, 187, .02);
  pointer-events: none;
}
#services.core-v2 .core-v2__copy,
#services.core-v2 .core-v2__actions { position: relative; z-index: 1; min-width: 0; }
#services.core-v2 .core-v2__copy { flex: 1 1 auto; max-width: 750px; }
#services.core-v2 .core-v2__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #eac796;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .16em;
}
#services.core-v2 .core-v2__kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 23px;
  height: 1px;
  background: #e8c591;
}
#services.core-v2 .core-v2__title {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
#services.core-v2 .core-v2__title span { color: #f0d6ab; }
#services.core-v2 .core-v2__description {
  max-width: 650px;
  margin: 0;
  color: #c4d3df;
  font-size: 13.5px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
#services.core-v2 .core-v2__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
#services.core-v2 .core-v2__actions-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8e6f0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
#services.core-v2 .core-v2__actions-label::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #8dddba;
  box-shadow: 0 0 0 4px rgba(141, 221, 186, .12);
}
#services.core-v2 a.core-v2__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #e9ce9e;
  border-radius: 11px;
  background: linear-gradient(135deg, #f8e5bf, #e9c38b);
  color: #233248;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .16);
  transition: transform .18s ease, filter .18s ease;
}
#services.core-v2 a.core-v2__cta svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) {
  #services.core-v2 a.core-v2__cta:hover { transform: translateY(-2px); filter: brightness(1.035); }
}
#services.core-v2 a.core-v2__cta:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

#services.core-v2 .core-v2__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 13px;
  align-items: stretch;
}
#services.core-v2 .core-v2__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 16px 16px 14px;
  border: 1px solid #e0e8f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 17px rgba(17, 55, 91, .045);
  color: #18314b;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#services.core-v2 .core-v2__card::before {
  content: "";
  position: absolute;
  inset: 0 17px auto;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d3ad75, rgba(211, 173, 117, 0));
  opacity: .72;
}
#services.core-v2 .core-v2__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}
#services.core-v2 .core-v2__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #dbe8f6;
  border-radius: 12px;
  background: linear-gradient(140deg, #eff6fd, #e3effc);
  color: #22588c;
}
#services.core-v2 .core-v2__icon svg {
  display: block;
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#services.core-v2 .core-v2__number {
  color: #9aaabb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
#services.core-v2 .core-v2__card h3 {
  min-width: 0;
  margin: 0 0 6px;
  color: #173a59;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 800;
  line-height: 1.47;
  overflow-wrap: anywhere;
}
#services.core-v2 .core-v2__card p {
  min-width: 0;
  margin: 0;
  color: #64768a;
  font-size: 12.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
#services.core-v2 .core-v2__card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 13px;
  color: #275b89;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}
#services.core-v2 .core-v2__card-foot::after {
  content: "";
  display: block;
  flex: 1 1 auto;
  max-width: 23px;
  height: 1px;
  background: #c8d9ea;
}
@media (hover: hover) {
  #services.core-v2 .core-v2__card:hover {
    transform: translateY(-3px);
    border-color: #ccdfef;
    box-shadow: 0 14px 26px rgba(17, 55, 91, .095);
  }
}
#services.core-v2 .core-v2__footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px 14px;
  color: #64798c;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}
#services.core-v2 .core-v2__footnote svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  stroke: #b18a5b;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1020px) {
  #services.core-v2 .core-v2__head { padding: 21px 22px; }
  #services.core-v2 .core-v2__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  #services.core-v2 { scroll-margin-top: 175px; }
  #services.core-v2 .core-v2__shell { border-radius: 20px; }
  #services.core-v2 .core-v2__head {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 18px 17px 19px;
  }
  #services.core-v2 .core-v2__title { font-size: 20px; margin-bottom: 6px; }
  #services.core-v2 .core-v2__description { font-size: 12px; }
  #services.core-v2 .core-v2__actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  #services.core-v2 .core-v2__actions-label { font-size: 10.5px; }
  #services.core-v2 a.core-v2__cta { min-height: 38px; padding: 8px 11px; font-size: 12px; }
  #services.core-v2 .core-v2__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 9px; }
  #services.core-v2 .core-v2__card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 12px;
    padding: 13px;
  }
  #services.core-v2 .core-v2__card::before { inset: 10px auto 10px 0; width: 2px; height: auto; }
  #services.core-v2 .core-v2__card-top { grid-column: 1; grid-row: 1 / span 3; align-self: start; margin: 0; }
  #services.core-v2 .core-v2__icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
  #services.core-v2 .core-v2__number { display: none; }
  #services.core-v2 .core-v2__card h3 { grid-column: 2; margin: 0 0 3px; font-size: 15px; }
  #services.core-v2 .core-v2__card p { grid-column: 2; font-size: 12px; line-height: 1.55; }
  #services.core-v2 .core-v2__card-foot { grid-column: 2; margin: 0; padding-top: 6px; font-size: 10.5px; }
  #services.core-v2 .core-v2__footnote { gap: 7px; padding: 2px 14px 12px; font-size: 10.5px; }
}
@media (max-width: 370px) {
  #services.core-v2 .core-v2__actions { flex-wrap: wrap; justify-content: flex-start; }
  #services.core-v2 .core-v2__head { gap: 12px; padding: 17px 14px; }
  #services.core-v2 .core-v2__card { padding: 12px 10px; gap: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #services.core-v2 .core-v2__card,
  #services.core-v2 a.core-v2__cta { transition: none; }
}
