/**
 * HR-tools: SKILL360 (/hr-tools/skill360/) and INSIGHT360 (/hr-tools/insight360/) — custom template (0.15.0).
 *
 * Port of Elementor pages 4341 / 4393 and sections 5672 / 4965 in the design
 * language of over ons and contact: image hero with the slice and a real H1,
 * the intro with the line drawing, the four profiles on a crème band (gold rule,
 * the brand mark in a white circle), then the scan of the r4y-scans plugin.
 * The scan keeps its own styling: only its outer spacing is set here.
 *
 * Breakpoints: laptop ≤1366, tablet ≤1024 (two profile columns), mobile ≤767.
 */

.r4y-template--page_skill360,
.r4y-template--page_insight360 {
    --r4y-gutter: 60px;
    --r4y-tool-space: clamp(64px, 7vw, 104px);
}
/* The line drawing and the slice run past the viewport edge on purpose. */
.r4y-template .r4y-tool {
    display: block;
    overflow-x: clip;
}

/* ── Hero: page image + cream gradient, the slice bottom right ────────── */
.r4y-template .r4y-tool__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 600px;
    padding: 150px var(--r4y-gutter) 90px;
    overflow: hidden; /* clips the slice */
    isolation: isolate;
    background-color: var(--r4y-kit-accent); /* without an image */
}
.r4y-template .r4y-tool__hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.r4y-template .r4y-tool__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(90deg, #FFFAF7 20%, #FBF8F600 100%);
}
.r4y-template .r4y-tool__hero--plain { min-height: 380px; }
.r4y-template .r4y-tool__hero-inner {
    position: relative;
}
.r4y-template .r4y-tool .r4y-tool__title {
    position: relative;
    font-family: var(--r4y-font-heading);
    font-size: 80px;
    font-weight: var(--r4y-fw-light);
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--r4y-kit-primary);
}
.r4y-template .r4y-tool .r4y-tool__subtitle {
    position: relative;
    max-width: 30ch;
    margin-top: 18px;
    font-family: var(--r4y-font-heading);
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: var(--r4y-fw-light);
    line-height: 1.3;
    color: var(--r4y-kit-primary);
}
/* The slice: a 1000×500 white block in a wrapper rotated −60°, clipped by the hero. */
.r4y-template .r4y-tool__hero-slice {
    rotate: -60deg;
    pointer-events: none;
}
.r4y-template .r4y-tool__hero-slice > div {
    position: absolute;
    top: 33vw;
    right: -20vw;
    width: 1000px;
    height: 500px;
    background: var(--r4y-kit-white);
}

/* ── Shared type ──────────────────────────────────────────────────────── */
.r4y-template .r4y-tool__head {
    position: relative;
    margin-bottom: clamp(40px, 4.5vw, 64px);
}
.r4y-template .r4y-tool .r4y-tool__eyebrow {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-family: var(--r4y-font-body);
    font-size: 13px;
    font-weight: var(--r4y-fw-semibold);
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--r4y-kit-secondary);
}
.r4y-template .r4y-tool__eyebrow::before {
    content: "";
    flex: 0 0 32px;
    height: 1px;
    background-color: currentColor;
}
.r4y-template .r4y-tool .r4y-tool__heading {
    position: relative;
    font-family: var(--r4y-font-heading);
    font-size: clamp(32px, 3.4vw, 50px);
    font-weight: var(--r4y-fw-light);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--r4y-kit-primary);
}

/* ── Intro: heading, text and the button to the scan ──────────────────── */
.r4y-template .r4y-tool__intro {
    position: relative;
    padding-block: var(--r4y-tool-space);
}
/* Line drawing: top right of the section, up into the hero, as live (widget d55366f / fb9e5a2). */
.r4y-template .r4y-tool__decor {
    position: absolute;
    top: -280px;
    right: -60px;
    line-height: 0;
    pointer-events: none;
}
.r4y-template .r4y-tool__intro-body {
    position: relative;
    max-width: 760px;
}
.r4y-template .r4y-tool .r4y-tool__intro-text {
    margin-top: 24px;
    font-size: var(--r4y-fs-md);
    font-weight: var(--r4y-fw-light);
    line-height: 1.7;
}
.r4y-template .r4y-tool .r4y-tool__intro-text p + p { margin-top: 1em; }
.r4y-template .r4y-tool .r4y-tool__intro-cta { margin-top: 36px; }
.r4y-template a.r4y-tool__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 26px;
}
.r4y-template .r4y-tool__button .r4y-icon {
    width: 13px;
    height: 13px;
    transition: translate var(--r4y-transition);
}
.r4y-template .r4y-tool__button:hover .r4y-icon,
.r4y-template .r4y-tool__button:focus-visible .r4y-icon { translate: 0 3px; }

/* ── Profiles: crème band, four columns ───────────────────────────────── */
.r4y-template .r4y-tool__profiles {
    padding-block: var(--r4y-tool-space);
    background-color: var(--r4y-kit-accent);
}
.r4y-template .r4y-tool__profile-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px clamp(28px, 3vw, 48px);
    padding: 0;
    list-style: none;
}
.r4y-template .r4y-tool-profile {
    padding-top: 28px;
    border-top: 2px solid var(--r4y-kit-secondary);
}
.r4y-template .r4y-tool-profile__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 24px;
    border-radius: 50%;
    background-color: var(--r4y-kit-white);
}
.r4y-template .r4y-tool-profile__icon {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.r4y-template .r4y-tool .r4y-tool-profile__title {
    font-family: var(--r4y-font-heading);
    font-size: clamp(24px, 2vw, 30px);
    font-weight: var(--r4y-fw-light);
    line-height: 1.15;
    color: var(--r4y-kit-primary);
}
.r4y-template .r4y-tool .r4y-tool-profile__text {
    margin-top: 14px;
    font-size: var(--r4y-fs-base);
    font-weight: var(--r4y-fw-light);
    line-height: 1.7;
}

/* ── Scan (r4y-scans plugin): only the outer spacing ──────────────────── */
.r4y-template .r4y-tool__scan {
    padding: var(--r4y-tool-space) var(--r4y-gutter);
    scroll-margin-top: 90px; /* below the sticky header */
}
.r4y-template .r4y-tool__scan > * {
    max-width: var(--r4y-container);
    margin-inline: auto;
}
.r4y-template .r4y-tool__notice {
    padding: 16px 20px;
    border: 1px dashed var(--r4y-kit-secondary);
    font-family: var(--r4y-font-body);
    font-size: var(--r4y-fs-sm);
}

/* ── Laptop ≤1366 ─────────────────────────────────────────────────────── */
@media (max-width: 1366px) {
    .r4y-template .r4y-tool__hero {
        min-height: 420px;
        padding: 120px var(--r4y-gutter) 60px;
    }
    .r4y-template .r4y-tool .r4y-tool__title { font-size: 56px; }
    .r4y-template .r4y-tool__decor { right: -90px; }
}

/* ── Tablet ≤1024: two profile columns ────────────────────────────────── */
@media (max-width: 1024px) {
    .r4y-template--page_skill360,
    .r4y-template--page_insight360 { --r4y-gutter: 30px; }
    .r4y-template .r4y-tool__decor { top: -260px; right: -110px; }
    .r4y-template .r4y-tool__profile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Mobile ≤767 ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .r4y-template--page_skill360,
    .r4y-template--page_insight360 {
        --r4y-gutter: 15px;
        --r4y-tool-space: 56px;
    }
    .r4y-template .r4y-tool__hero {
        min-height: 420px;
        padding: 90px var(--r4y-gutter) 60px;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 104px), calc(100% - 60px) 100%, 0 100%);
    }
    .r4y-template .r4y-tool__hero--plain { min-height: 300px; }
    .r4y-template .r4y-tool .r4y-tool__title { font-size: 44px; }
    .r4y-template .r4y-tool .r4y-tool__subtitle { padding-bottom: 30px; font-size: 20px; }
    /* Text runs across the full width here: a fade from the bottom instead of from the left,
       so the subtitle sits on crème instead of the busy part of the photo. */
    .r4y-template .r4y-tool__hero::before {
        background-image: linear-gradient(0deg, #FFFAF7 0%, #FFFAF7 40%, rgba(255, 250, 247, 0.8) 62%, rgba(255, 250, 247, 0) 92%);
    }
    .r4y-template .r4y-tool__hero-slice { display: none; }
    .r4y-template .r4y-tool__decor { top: -264px; right: -180px; }
    .r4y-template .r4y-tool .r4y-tool__intro-text { font-size: var(--r4y-fs-base); }
    .r4y-template .r4y-tool__profile-list { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .r4y-template .r4y-tool__scan { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .r4y-template .r4y-tool__button .r4y-icon { transition: none; }
}
