/**
 * The Method section
 * 4-stage diagram layout showing the procedure stages with images.
 * Light background, 4-column grid.
 */

/* —— Section wrapper —— */
.sw-the-method {
    width: 100%;
    background: #FFFEFC;
    padding: 80px 0 80px;
}

.sw-the-method__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 70px;
}

/* —— Section header —— */
.sw-the-method__header {
    text-align: center;
    margin-bottom: 60px;
}

.sw-the-method__label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9D9085;
    margin-bottom: 16px;
}

.sw-the-method__heading {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    color: #2B2722;
    margin: 0 0 20px;
}

.sw-the-method__heading em {
    font-style: italic;
    color: #A59680;
}

.sw-the-method__subheading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 400;
    color: #6B6159;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* —— Stages grid —— */
.sw-the-method__stages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* —— Individual stage —— */
.sw-the-method__stage {
    padding: 0 0 40px 0;
    position: relative;
}

/* —— Stage label row —— */
.sw-the-method__stage-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.sw-the-method__stage-num {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9D9085;
}

.sw-the-method__stage-dot {
    font-size: 10px;
    color: #C5B8AC;
}

.sw-the-method__stage-name {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9D9085;
}

/* —— Divider line (under stage label, above image) —— */
.sw-the-method__divider {
    width: 100%;
    height: 1px;
    background: #C5B8AC;
    margin-bottom: 28px;
    position: relative;
}

/* Small vertical tick at the left edge of the divider line */
.sw-the-method__divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 8px;
    background: #C5B8AC;
}
/* Hide mobile slider nav buttons on desktop */
.sw-the-method__nav {
    display: none;
}

/* —— Image —— */
.sw-the-method__image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 24px;
    background: #F0EBE3;
}

.sw-the-method__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* —— Title —— */
.sw-the-method__title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 400;
    line-height: 1.2;
    color: #2B2722;
    margin: 0 0 12px;
}

.sw-the-method__title em {
    font-style: italic;
    color: #A59680;
}

/* —— Description —— */
.sw-the-method__desc {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 400;
    color: #6B6159;
    line-height: 1.65;
    margin: 0;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
    .sw-the-method__image-wrap {
        height: 240px;
    }
}

/* ——————————————————————————————————————————
   MOBILE STEPPER (hidden on desktop)
—————————————————————————————————————————— */
.sw-the-method__stepper {
    display: none;
}

/* ——————————————————————————————————————————
   MOBILE SLIDER  ≤ 767px
—————————————————————————————————————————— */
@media (max-width: 767px) {

    .sw-the-method {
        padding: 60px 0;
    }

    .sw-the-method__inner {
        padding: 0 24px;
    }

    /* Overflow clipping for the slider */
    .sw-the-method__stages-wrapper {
        overflow: hidden;
        width: 100%;
    }

    .sw-the-method__header {
        margin-bottom: 32px;
    }

    /* Show the stepper */
    .sw-the-method__stepper {
        display: block;
        margin-bottom: 20px;
        user-select: none;
    }

    .sw-the-method__stepper-track {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    /* Connecting line behind the dots */
    .sw-the-method__stepper-rule {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 1px;
        background: #D9C8AE;
        pointer-events: none;
    }

    /* All dots */
    .sw-the-method__stepper-node {
        position: relative;
        z-index: 1;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #FFFEFC;
        border: 1.25px solid #D9C8AE;
        padding: 0;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    /* Active dot */
    .sw-the-method__stepper-node--active {
        width: 14px;
        height: 14px;
        background: #A59680;
        border-color: #A59680;
    }

    /* Labels row */
    .sw-the-method__stepper-labels {
        display: flex;
        justify-content: space-between;
    }

    .sw-the-method__stepper-label {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        font-weight: 600;
        color: #A59680;
        letter-spacing: 0.13em;
        text-align: center;
        width: 14px;
        line-height: 1;
        white-space: nowrap;
        transition: color 0.2s ease;
    }

    .sw-the-method__stepper-label--active {
        color: #2B2722;
    }

    /* Slider track */
    .sw-the-method__stages {
        display: flex;
        flex-direction: row;
        gap: 0;
        width: 100%;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        border-top: none;
    }

    /* Each slide */
    .sw-the-method__stage {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 0 32px 0;
        position: relative;
    }

    /* Stage header line colour corrections */
    .sw-the-method__stage-label {
        margin-top: 12px;
    }

    .sw-the-method__divider {
        background: #D9C8AE;
    }

    .sw-the-method__divider::before {
        background: #D9C8AE;
    }

    /* Image tile */
    .sw-the-method__image-wrap {
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 4px;
        background: #FAF8F0;
        overflow: visible;
        position: relative;
    }

    .sw-the-method__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
    }

    /* Nav buttons — prev & next overlaid on image */
    .sw-the-method__nav {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 22px;
        background: #FFFEFC;
        border: 1px solid #E8DEC6;
        box-shadow: 0 2px 8px 0 rgba(42, 38, 30, 0.10);
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        z-index: 2;
        transition: opacity 0.2s ease;
    }

    .sw-the-method__nav--prev {
        left: 12px;
    }

    .sw-the-method__nav--next {
        right: 12px;
    }

    /* Hide the nav button that's not applicable */
    .sw-the-method__stage:first-child .sw-the-method__nav--prev,
    .sw-the-method__stage:last-child .sw-the-method__nav--next {
        opacity: 0;
        pointer-events: none;
    }

    /* Stage content spacing */
    .sw-the-method__title {
        margin-top: 20px;
    }
}