/* SAVORIP_HORIZONTAL_SERVICE_SECTION_R7422
   One bounded service selector for desktop. The approved mobile composition stays untouched. */

.r7422-horizontal-section,
.r7422-horizontal-section * {
  box-sizing: border-box;
}

.r7422-horizontal-section {
  display: none;
}

@media (min-width: 761px) {
  html[data-savorip-horizontal-section] .home-visual-menu {
    display: none !important;
  }

  .r7422-legacy-region,
  .r7422-source-card {
    display: none !important;
  }

  .r7422-horizontal-section {
    --r7422-gold: #f3c65d;
    --r7422-gold-soft: rgba(243, 198, 93, 0.28);
    --r7422-ink: #f7f8f3;
    --r7422-muted: #b8c9c2;
    display: block !important;
    width: min(1260px, calc(100% - 48px));
    max-width: 1260px;
    margin: clamp(24px, 3vw, 42px) auto clamp(38px, 5vw, 70px);
    padding: clamp(22px, 2.2vw, 30px);
    overflow: hidden;
    border: 1px solid var(--r7422-gold-soft);
    border-radius: 26px;
    background:
      radial-gradient(circle at 92% 0%, rgba(35, 118, 103, 0.18), transparent 34%),
      linear-gradient(145deg, rgba(9, 43, 36, 0.98), rgba(3, 28, 24, 0.99));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
    color: var(--r7422-ink);
    isolation: isolate;
    scroll-margin-top: 110px;
  }

  .r7422-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 20px;
  }

  .r7422-section-copy {
    min-width: 0;
  }

  .r7422-section-kicker {
    margin: 0 0 7px;
    color: var(--r7422-gold);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .r7422-section-title {
    margin: 0;
    color: var(--r7422-ink);
    font-family: inherit;
    font-size: clamp(1.75rem, 2.7vw, 2.5rem);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -0.035em;
    text-wrap: balance;
  }

  .r7422-section-intro {
    flex: 0 1 390px;
    margin: 0 0 3px;
    color: var(--r7422-muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
    text-align: right;
  }

  .r7422-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
  }

  .r7422-service-card {
    position: relative;
    display: block;
    min-width: 0;
    height: clamp(206px, 22vw, 238px);
    overflow: hidden;
    border: 1px solid rgba(243, 198, 93, 0.3);
    border-radius: 18px;
    background: #08231e;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    color: #fff;
    text-decoration: none !important;
    transform: translateY(0);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  .r7422-service-card:hover,
  .r7422-service-card:focus-visible {
    border-color: rgba(243, 198, 93, 0.82);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    color: #fff;
    transform: translateY(-3px);
  }

  .r7422-service-card:focus-visible {
    outline: 3px solid rgba(243, 198, 93, 0.75);
    outline-offset: 3px;
  }

  .r7422-card-image,
  .r7422-card-image::after {
    position: absolute;
    inset: 0;
  }

  .r7422-card-image {
    overflow: hidden;
    background: linear-gradient(135deg, rgba(25, 88, 74, 0.8), rgba(2, 22, 19, 0.94));
  }

  .r7422-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.98) contrast(1.02);
    image-rendering: auto;
    transform: scale(1.001);
    transition: transform 320ms ease;
  }

  .r7422-service-card:hover .r7422-card-image img,
  .r7422-service-card:focus-visible .r7422-card-image img {
    transform: scale(1.035);
  }

  .r7422-card-image::after {
    content: "";
    background: linear-gradient(to bottom, rgba(0, 19, 16, 0.04) 20%, rgba(0, 19, 16, 0.3) 54%, rgba(0, 19, 16, 0.97) 100%);
    pointer-events: none;
  }

  .r7422-card-number,
  .r7422-card-arrow {
    position: absolute;
    top: 13px;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 999px;
    background: rgba(1, 25, 21, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(8px);
  }

  .r7422-card-number {
    left: 13px;
    width: 35px;
    height: 27px;
  }

  .r7422-card-arrow {
    right: 13px;
    width: 34px;
    height: 34px;
    border-color: rgba(243, 198, 93, 0.76);
    background: var(--r7422-gold);
    color: #102720;
    font-size: 1.05rem;
  }

  .r7422-card-copy {
    position: absolute;
    right: 16px;
    bottom: 15px;
    left: 16px;
    z-index: 2;
    min-width: 0;
  }

  .r7422-card-title {
    display: -webkit-box;
    margin: 0 0 4px;
    overflow: hidden;
    color: #fff;
    font-family: inherit;
    font-size: clamp(1rem, 1.35vw, 1.13rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .r7422-card-description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: rgba(239, 247, 243, 0.84);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 1181px) {
  .r7422-service-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .r7422-service-card {
    height: clamp(205px, 16.5vw, 224px);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .r7422-horizontal-section {
    width: min(100% - 32px, 900px);
    padding: 20px;
  }

  .r7422-section-head {
    display: block;
  }

  .r7422-section-intro {
    margin-top: 9px;
    text-align: left;
  }
}

/* Mobile retains the already approved original one-column cards. */
@media (max-width: 760px) {
  .r7422-horizontal-section {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .r7422-service-card,
  .r7422-card-image img {
    transition: none !important;
  }
}
