/* Stage 3 — services section; enqueued only on the homepage. */
.ryan-services {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 20px;
  direction: rtl;
  background: #fff;
  font-family: var(--ryan-font, 'Alexandria', sans-serif);
}
.ryan-services *,
.ryan-services *::before,
.ryan-services *::after { box-sizing: border-box; }
.ryan-services__inner { width: 100%; margin-inline: auto; }
.ryan-services__heading {
  max-width: 1400px;
  margin: 0 auto 55px;
  text-align: center;
}
.ryan-services__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #5c2430;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .3px;
}
.ryan-services__asterisk {
  display: inline-block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5c2430;
}
.ryan-services__title {
  margin: 28.8px 0 14.4px;
  color: #5c1f2e;
  font-family: inherit;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
.ryan-services__title span { color: #5c2430; font-weight: 800; }
.ryan-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}
.ryan-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px 26px 30px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(92, 36, 48, .15);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
  transition: border-color .4s ease, transform .4s ease, box-shadow .4s ease;
}
.ryan-service-card::before,
.ryan-service-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.ryan-service-card::before { background: #5c2430; }
.ryan-service-card::after {
  inset: -40% -40%;
  background: repeating-radial-gradient(circle at 20% 15%, #5c2430 0, #5c2430 42px, #3f1620 42px, #3f1620 84px);
  transform: scale(.6);
  transform-origin: top left;
  transition: opacity .5s ease, transform .6s ease;
}
.ryan-service-card:hover,
.ryan-service-card:focus-within {
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
  transform: translateY(-6px);
}
.ryan-service-card:hover::before,
.ryan-service-card:hover::after,
.ryan-service-card:focus-within::before,
.ryan-service-card:focus-within::after { opacity: 1; }
.ryan-service-card:hover::after,
.ryan-service-card:focus-within::after { transform: scale(1); }
.ryan-service-card__image {
  position: relative;
  z-index: 0;
  display: block;
  width: calc(100% + 52px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: -34px -26px 18px;
  border-radius: 13px 13px 0 0;
  background: #f3efe8;
  object-fit: cover;
}
.ryan-service-card__number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(92, 36, 48, .78);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  opacity: .95;
  transition: opacity .35s ease;
}
.ryan-service-card__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  margin-bottom: 10px;
  border: 1px solid rgba(92, 36, 48, .15);
  border-radius: 50%;
  background: #fff;
  color: #c9a063;
  transition: border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.ryan-service-card__icon svg { display: block; width: 28px; height: 28px; }
.ryan-service-card:hover .ryan-service-card__icon,
.ryan-service-card:focus-within .ryan-service-card__icon {
  border-color: #c9a063;
  background: #c9a063;
  box-shadow: 0 8px 20px rgba(184, 149, 100, .35);
  color: #5c2430;
}
.ryan-service-card__divider {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 2px;
  width: 40px;
  height: 2px;
  margin-bottom: 8px;
  border-radius: 2px;
  background: #c9a063;
}
.ryan-service-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
}
.ryan-service-card__title {
  margin: 25px 0 6px;
  color: #5c2430;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  transition: color .35s ease;
}
.ryan-service-card__title a { color: inherit; text-decoration: none; }
.ryan-service-card__description {
  margin: 0 0 22px;
  color: #6b6b6b;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.9;
  transition: color .35s ease;
}
.ryan-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #c9a063;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  transition: gap .3s ease, color .3s ease;
}
.ryan-service-card__link svg { flex: 0 0 16px; transition: transform .3s ease; }
.ryan-service-card__link:hover { gap: 12px; color: #d8b87e; }
.ryan-service-card__link:hover svg { transform: translateX(-3px); }
.ryan-service-card:hover .ryan-service-card__title,
.ryan-service-card:focus-within .ryan-service-card__title { color: #f7f4ee; }
.ryan-service-card:hover .ryan-service-card__description,
.ryan-service-card:focus-within .ryan-service-card__description { color: #b9b1a4; }
.ryan-service-card:hover .ryan-service-card__link,
.ryan-service-card:focus-within .ryan-service-card__link { color: #d8b87e; }
.ryan-service-card:focus-within { outline: 2px solid #c9a063; outline-offset: 3px; }
@media (max-width: 1024px) {
  .ryan-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .ryan-services { width: 100%; padding: 64px 20px; }
  .ryan-services__title { margin-top: 20px; font-size: clamp(24px, 5vw, 40px); line-height: 1.4; }
}
@media (max-width: 560px) {
  .ryan-services { padding: 56px 20px; }
  .ryan-services__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ryan-services__heading { margin-bottom: 36px; }
  .ryan-service-card { padding-inline: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ryan-services *,
  .ryan-services *::before,
  .ryan-services *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
