/* ==========================================================================
   Services Tiles  –  Namespaced with .st- prefix to avoid WP theme conflicts
   ========================================================================== */

/* ── Wrapper ──────────────────────────────────────────────────────────── */
.st-wrapper {
    width: 100%;
    overflow: hidden;
}

/* ── Section ──────────────────────────────────────────────────────────── */
.st-section {
    display: flex;
    width: 100%;
/*     height: 100vh; */
	
    height: calc(100vh - var(--header-height-res));
    min-height: 500px;
    overflow: hidden;
}

/* ── Each tile ────────────────────────────────────────────────────────── */
.st-tile {
    position: relative;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    will-change: width;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.35s ease;
}
.st-tile:last-child {
    border-right: none;
}

/* ── Collapsed: vertical label ────────────────────────────────────────── */
.st-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
}
.st-label span {
    display: block;
    transform: rotate(-90deg);
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.2rem;
    color: rgba(0, 0, 0, 0.28);
}

/* ── Expanded: left accent bar ────────────────────────────────────────── */
.st-accent-bar {
    position: absolute;
    left: 0;
    top: 18%;
    width: 3px;
    height: 64%;
    border-radius: 0 3px 3px 0;
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
}

/* ── Expanded: large watermark ────────────────────────────────────────── */
.st-watermark {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(7rem, 14vw, 13rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    opacity: 0.06;
    transition: opacity 0.25s ease;
}
/* Hidden on collapsed tiles */
.st-tile:not(.st-active) .st-watermark {
    opacity: 0;
}

/* ── Expanded: content panel ──────────────────────────────────────────── */
.st-content {
    position: absolute;
    inset: 0;
    padding: 0 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    min-width: 500px;
}
.st-tile.st-active .st-content {
    pointer-events: auto;
}

/* Badge */
.st-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.22rem;
    padding: 6px 16px;
    border-radius: 99px;
    border: 1px solid currentColor;
    width: fit-content;
    margin-bottom: 26px;
    opacity: 0.75;
}

/* Title */

.st-title {
    font-size: clamp(2.5rem, 3.2vw, 3rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    max-width: 480px;
    /* Respect \n line breaks passed from JSON */
    white-space: pre-line;
}
@media (max-width: 375px) {   
.st-title {
        font-size: 27px;
    }
}

/* Description */
.st-desc {
    font-size: 0.88rem;
    line-height: 1.76;
    font-weight: 400;
    opacity: 0.65;
    max-width: 400px;
    margin-bottom: 30px;
}

/* Features 2-col grid */
.st-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 36px;
    max-width: 500px;
    margin-bottom: 38px;
}
.st-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.035rem;
    line-height: 1.45;
    opacity: 0.78;
}
.st-feature-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    margin-top: 5px;
}

/* CTA — works for both <button> and <a> */
.st-cta {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14rem;
    cursor: pointer;
    border: none;
    width: fit-content;
    text-decoration: none;
    font-family: inherit;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease;
}
.st-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.st-cta:active {
    transform: translateY(-1px) scale(1.01);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .st-section {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
    }
    .st-tile {
        width: 100% !important;
        height: auto !important;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .st-content {
        position: relative;
        inset: auto;
        min-width: unset;
        padding: 48px 32px;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .st-content > * {
        opacity: 1 !important;
        transform: none !important;
    }
    .st-label {
        display: none;
    }
    .st-watermark {
        font-size: 5rem;
    }
}
