
/* =========================================================
   BCC — DONE-WITH-YOU (IN60) HERO
   File: assets/css/pages/dwy/hero.css
   ========================================================= */

.dwy-hero {
    --dwy-hero-bg: var(--bcc-color-background, #F5F1F7);
    --dwy-hero-ink: var(--bcc-color-primary, #0D2230);
    --dwy-hero-dark: var(--bcc-color-primary-dark, #071923);
    --dwy-hero-accent: var(--bcc-color-accent, #F4D738);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(4rem, 7.5vw, 7rem) 0 clamp(4.5rem, 8vw, 7rem);
    background: var(--dwy-hero-bg);
    color: var(--dwy-hero-ink);
}

.dwy-hero *,
.dwy-hero *::before,
.dwy-hero *::after {
    box-sizing: border-box;
}

.dwy-hero__container {
    width: min(100% - 10%, 1440px);
    margin-inline: auto;
}

/* =========================================================
   MAIN TWO-COLUMN LAYOUT
   Process introduction: left
   IN60 identity: right
   ========================================================= */

.dwy-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 8rem);
}

/* =========================================================
   LEFT COLUMN — PROCESS INTRODUCTION
   ========================================================= */

.dwy-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.dwy-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 clamp(2rem, 3.5vw, 3rem);
    color: var(--dwy-hero-ink);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dwy-hero__eyebrow::before {
    width: 28px;
    height: 3px;
    flex: 0 0 28px;
    background: var(--dwy-hero-accent);
    content: "";
}

/* Process name */

.dwy-hero__process-title {
    max-width: 680px;
    margin: 0;
    color: var(--dwy-hero-ink);
    font-family: inherit;
    font-size: clamp(2.75rem, 5.2vw, 5.4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.075em;
    text-wrap: pretty;
}

/* Description */

.dwy-hero__description {
    max-width: 510px;
    margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
    color: var(--dwy-hero-ink);
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    font-weight: 400;
    line-height: 1.8;
    opacity: 0.78;
}

/* CTA */

.dwy-hero__actions {
    display: flex;
    align-items: flex-start;
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.dwy-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 58px;
    padding: 1rem 1.35rem;
    border: 1px solid var(--dwy-hero-ink);
    background: var(--dwy-hero-ink);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.dwy-hero__cta-arrow {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.dwy-hero__cta:hover {
    transform: translateY(-2px);
    border-color: var(--dwy-hero-accent);
    background: var(--dwy-hero-accent);
    color: var(--dwy-hero-dark);
}

.dwy-hero__cta:hover .dwy-hero__cta-arrow {
    transform: translateX(4px);
}

.dwy-hero__cta:focus-visible {
    outline: 3px solid var(--dwy-hero-ink);
    outline-offset: 5px;
}

/* =========================================================
   RIGHT COLUMN — IN60 IDENTITY
   ========================================================= */

.dwy-hero__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
}

.dwy-hero__title {
    width: 100%;
    margin: 0;
    color: var(--dwy-hero-ink);
    font-family: inherit;
    font-size: clamp(6.5rem, 14vw, 13rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.1em;
    text-align: right;
    white-space: nowrap;
}

.dwy-hero__title-number {
    color: var(--dwy-hero-ink);
}

/* Square photograph */

.dwy-hero__visual {
    width: min(78%, 390px);
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

.dwy-hero__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #dedbd5;
}

.dwy-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 550ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.dwy-hero__image-wrap:hover .dwy-hero__image {
    transform: scale(1.04);
}

/* Image caption */

.dwy-hero__visual-caption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding-top: 1rem;
    border-bottom: 1px solid rgb(13 34 48 / 20%);
    padding-bottom: 1rem;
}

.dwy-hero__visual-label {
    color: var(--dwy-hero-ink);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1em;
    opacity: 0.62;
}

.dwy-hero__visual-text {
    color: var(--dwy-hero-ink);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {
    .dwy-hero {
        padding-top: clamp(3.5rem, 7vw, 5.5rem);
    }

    .dwy-hero__container {
        width: min(100% - 8%, 850px);
    }

    .dwy-hero__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
        gap: clamp(2rem, 4vw, 3.5rem);
    }

    .dwy-hero__process-title {
        font-size: clamp(2.6rem, 5.2vw, 4rem);
    }

    .dwy-hero__title {
        font-size: clamp(5.5rem, 13vw, 8.5rem);
    }

    .dwy-hero__visual {
        width: 85%;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {
    .dwy-hero {
        padding: 3.25rem 0 4rem;
    }

    .dwy-hero__container {
        width: calc(100% - 36px);
    }

    .dwy-hero__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 3.5rem;
    }

    .dwy-hero__content {
        align-items: flex-start;
    }

    .dwy-hero__eyebrow {
        margin-bottom: 1.75rem;
        font-size: 0.68rem;
    }

    .dwy-hero__eyebrow::before {
        width: 22px;
        flex-basis: 22px;
    }

    .dwy-hero__process-title {
        max-width: 540px;
        font-size: clamp(2.75rem, 10.5vw, 4.25rem);
        line-height: 1.03;
        letter-spacing: -0.07em;
    }

    .dwy-hero__description {
        margin-top: 1.5rem;
        font-size: 1rem;
        line-height: 1.75;
    }

    .dwy-hero__actions {
        width: 100%;
        margin-top: 1.5rem;
    }

    .dwy-hero__cta {
        width: 100%;
        justify-content: space-between;
        min-height: 56px;
        padding: 0.95rem 1.1rem;
    }

    .dwy-hero__identity {
        align-items: flex-start;
    }

    .dwy-hero__title {
        font-size: clamp(7rem, 25vw, 11rem);
        line-height: 0.82;
        text-align: left;
    }

    .dwy-hero__visual {
        width: min(100%, 390px);
        margin-top: 1.75rem;
    }

    .dwy-hero__image-wrap {
        aspect-ratio: 1 / 1;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {
    .dwy-hero__container {
        width: calc(100% - 30px);
    }

    .dwy-hero__process-title {
        font-size: 2.55rem;
    }

    .dwy-hero__title {
        font-size: 6.5rem;
    }

    .dwy-hero__layout {
        gap: 3rem;
    }

    .dwy-hero__cta {
        gap: 0.8rem;
        font-size: 0.84rem;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .dwy-hero__image,
    .dwy-hero__cta,
    .dwy-hero__cta-arrow {
        transition: none;
    }

    .dwy-hero__image-wrap:hover .dwy-hero__image,
    .dwy-hero__cta:hover {
        transform: none;
    }
}
