/*==========================================================================
  Services page - "Our services" section redesign.
  01 What We Set Up: four tall full-bleed photo tiles with the title and the
     "who it's for" line laid over a dark gradient; the photo zooms and a
     "View details" link rises on hover.
  02 Support That Keeps It Running: the same photo tiles, with the group
     heading mirrored to the right.
==========================================================================*/

/* ---------- Group headings: big outlined number + title ---------- */
.svx-group {
    margin-top: 10px;
}

.svx-group-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.svx-group-num {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--theme-color);
}

.svx-group-head h3 {
    position: relative;
    margin: 0;
    padding-left: 18px;
    font-size: 28px;
    font-weight: 600;
    color: var(--header);
}

.svx-group-head h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 3px;
    border-radius: 3px;
    background: var(--theme-color);
}

.svx-group-head--light .svx-group-num {
    -webkit-text-stroke-color: #7fd6a6;
}

.svx-group-head--light h3 {
    color: var(--white);
}

/* ---------- 01: photo tiles ---------- */
.svx-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.svx-tile {
    position: relative;
    display: block;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    color: var(--white);
    box-shadow: 0 16px 36px rgba(32, 64, 102, 0.16);
}

.svx-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .7s ease;
}

/* dark gradient so the text always reads over the photo */
.svx-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 31, 56, 0.05) 25%, rgba(11, 31, 56, 0.6) 58%, rgba(11, 31, 56, 0.94) 100%);
    transition: background .4s ease;
}

.svx-tile-num {
    position: absolute;
    top: 20px;
    left: 22px;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--white);
}

.svx-tile-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 26px 24px;
    transform: translateY(38px);
    transition: transform .4s ease;
}

.svx-tile-body h4 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
}

.svx-tile-for {
    display: block;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.svx-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #7fd6a6;
    opacity: 0;
    transition: opacity .4s ease;
}

.svx-tile:hover img,
.svx-tile:focus-visible img {
    transform: scale(1.08);
}

.svx-tile:hover::after,
.svx-tile:focus-visible::after {
    background: linear-gradient(180deg, rgba(11, 31, 56, 0.15) 15%, rgba(11, 31, 56, 0.7) 50%, rgba(0, 90, 45, 0.95) 100%);
}

.svx-tile:hover .svx-tile-body,
.svx-tile:focus-visible .svx-tile-body {
    transform: translateY(0);
}

.svx-tile:hover .svx-tile-cta,
.svx-tile:focus-visible .svx-tile-cta {
    opacity: 1;
}

.svx-tile:focus-visible {
    outline: 3px solid var(--theme-color);
    outline-offset: 3px;
}

/* touch screens have no hover: show the link and settle the text */
@media (hover: none) {
    .svx-tile-body { transform: none; }
    .svx-tile-cta { opacity: 1; }
}

/* ---------- 02: same tiles, heading mirrored to the right ---------- */
.svx-group--right {
    margin-top: 60px;
}

.svx-group-head--right {
    justify-content: flex-end;
    text-align: right;
}

.svx-group-head--right h3 {
    padding-left: 0;
    padding-right: 18px;
}

.svx-group-head--right h3::before {
    left: auto;
    right: 0;
}
/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .svx-tiles { grid-template-columns: repeat(2, 1fr); }
    .svx-tile { height: 330px; }
}

@media (max-width: 767px) {
    .svx-group-num { font-size: 44px; }
    .svx-group-head h3 { font-size: 23px; }
}

@media (max-width: 575px) {
    .svx-tiles { grid-template-columns: 1fr; }
    .svx-tile { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
    .svx-tile img, .svx-tile-body, .svx-tile-cta { transition: none; }
}

/* ---------- How We Can Work Together: its own white section ---------- */
.page-services .services-section-2.svx-work-section {
    background: var(--white);
    background-image: none;
}

/* the engagement block no longer needs the gap it had under the tiles */
.page-services .svx-work-section .engagement-models {
    margin-top: 0;
}
