/* ============================================================
   SITE CONTENT
   ============================================================ */

.site-content {
    width: 94%;
    max-width: 1400px;
    margin-left: 3%;
    margin-right: auto;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(360px, 460px);

    align-items: center;

    column-gap: clamp(40px, 5vw, 80px);

    width: calc(100% - 64px);
    max-width: 1200px;

    min-height: 650px;

    margin: 12px auto 0;

    padding: 80px clamp(50px, 6vw, 84px);

    background: var(--pissy-cream);

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        20px 20px 0 var(--charcoal),
        0 0 20px var(--shadow-halo);
}


/* ============================================================
   HERO CONTENT
   ============================================================ */

.hero-content {
    grid-column: 1;
    grid-row: 1;

    align-self: center;

    width: 100%;
    max-width: 620px;
}

.hero h1 {
    margin: 0;

    max-width: 600px;

    font-family: inherit;
    font-size: clamp(38px, 3.3vw, 58px);
    font-weight: 500;

    line-height: 1.05;
    letter-spacing: -1.8px;

    color: var(--black);
}

.hero p {
    max-width: 520px;

    margin: 28px 0 0;

    font-family: inherit;
    font-size: 16px;
    font-weight: 400;

    line-height: 1.55;

    color: var(--charcoal);
}


/* ============================================================
   HERO BUTTONS
   ============================================================ */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: flex-start;

    gap: 9px 10px;

    width: 100%;

    margin-top: 32px;
}

.what-to-expect-button,
.my-approach-button,
.about-me-button,
.faq-button,
.urgent-support-button,
.contact-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: auto;
    min-height: 34px;

    padding: 0 13px;

    box-sizing: border-box;

    white-space: nowrap;

    background: transparent;

    border: 1px solid var(--charcoal);
    border-radius: 20px;

    background-color: var(--the-colours-of-some-buttons-and-some-background-circles);
    color: var(--black);

    font-family: inherit;
    font-size: 11px;
    font-weight: 400;

    line-height: 1;

    text-decoration: underline;
    text-underline-offset: 3px;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        text-decoration-color 0.25s ease,
        transform 0.2s ease;
}

.what-to-expect-button:hover,
.my-approach-button:hover,
.about-me-button:hover,
.faq-button:hover,
.urgent-support-button:hover,
.contact-button:hover {
    background: var(--charcoal);

    color: var(--white);

    text-decoration: none;

    transform: translateY(-1px);
}


/* ============================================================
   HERO IMAGE
   ============================================================ */

.hero-image {
    position: relative;

    grid-column: 2;
    grid-row: 1;

    align-self: center;

    width: 100%;

    aspect-ratio: 4 / 5;

    cursor: default;
}


/* ============================================================
   HERO IMAGE CARDS
   ============================================================ */

.image-card {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border-radius: 20px;

    transition:
        transform 0.45s ease,
        z-index 0s 0.225s;
}


/* ============================================================
   CHARCOAL CARD
   ============================================================ */

.charcoal-card {
    display: flex;

    align-items: center;
    justify-content: center;

    background: #292929;

    transform: translate(4%, 4%);

    z-index: 1;
    overflow: hidden;

    box-sizing: border-box;
    max-width: 100%;
}

.charcoal-card a {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0 5%;

    box-sizing: border-box;

    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;

    color: var(--white);

    text-align: center;

    overflow-wrap: anywhere;
}


/* ============================================================
   IMAGE CARD
   ============================================================ */

.max-card {
    overflow: hidden;

    transform: translate(0, 0);

    z-index: 2;
}

.max-card picture,
.max-card img {
    display: block;

    width: 100%;
    height: 100%;
}

.max-card img {
    object-fit: cover;
}


/* ============================================================
   HERO IMAGE SWAP
   ============================================================ */

.hero-image.swapped .max-card {
    transform: translate(18px, 18px);

    z-index: 1;
}

.hero-image.swapped .charcoal-card {
    transform: translate(0, 0);

    z-index: 2;
}

.hero-image img {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    border-radius: 20px;

    z-index: 1;

    transition: opacity 0.25s ease;
}


/* ============================================================
   TABLET / MOBILE
   ============================================================ */

@media (max-width: 1150px) {

    /* --------------------------------------------------------
       SITE CONTENT
       -------------------------------------------------------- */

    .site-content {
        width: 100%;
        max-width: 1400px;

        margin-left: auto;
        margin-right: auto;
    }


    /* --------------------------------------------------------
       HERO
       -------------------------------------------------------- */

    .hero {
        display: flex;
        flex-direction: column;

        width: calc(100% - 24px);

        min-height: auto;

        margin: 8px auto 0;

        padding: 40px 24px 36px;

        border-radius: 12px;

        box-shadow: 
        0 0 0 5px var(--charcoal), 
        0 10px 120px var(--shadow-halo);
    }


    /* --------------------------------------------------------
       HERO CONTENT
       -------------------------------------------------------- */

    .hero-content {
        width: 100%;
        max-width: none;

        text-align: left;
    }

    .hero h1 {
        max-width: none;

        font-size: clamp(34px, 7vw, 52px);

        line-height: 1.06;

        letter-spacing: -1px;
    }

    .hero p {
        max-width: none;

        margin-top: 24px;

        font-size: 15px;

        line-height: 1.55;
    }


    /* --------------------------------------------------------
       HERO BUTTONS
       -------------------------------------------------------- */

    .hero-buttons {
        display: flex;
        flex-direction: row;

        flex-wrap: wrap;

        justify-content: flex-start;
        align-items: center;

        gap: 8px;

        width: 100%;

        margin-top: 28px;
    }

    .what-to-expect-button,
    .my-approach-button,
    .about-me-button,
    .faq-button,
    .urgent-support-button,
    .contact-button {
        width: auto;

        min-height: 36px;

        padding: 0 13px;

        font-size: 11px;

        text-align: center;
    }


    /* --------------------------------------------------------
       HERO IMAGE
       -------------------------------------------------------- */

    .hero-image {
        width: calc(100% - 20px);

        max-width: 380px;

        margin: 42px auto 0;
    }

    .hero-image img {
        width: 100%;
        height: auto;

        aspect-ratio: 4 / 5;

        object-fit: cover;

        border-radius: 16px;
    }

    .image-card {
        border-radius: 16px;
    }

    .charcoal-card span {
        margin: auto 30px;
    }
}

/* ============================================================
   DARK MODE
   ============================================================ */

@media (prefers-color-scheme: dark) {

    .hero {
        background: var(--dark-bg);

        box-shadow:
            20px 20px 0 var(--dark-mode-shadow),
            0 0 20px var(--shadow-halo);
    }


    /* --------------------------------------------------------
       Hero text
       -------------------------------------------------------- */

    .hero h1 {
        color: var(--pale-nothing);
    }


    .hero p {
        color: var(--pale-nothing);
    }


    /* --------------------------------------------------------
       Hero buttons
       -------------------------------------------------------- */

    .what-to-expect-button,
    .my-approach-button,
    .about-me-button,
    .faq-button,
    .urgent-support-button,
    .contact-button {
        background-color: var(--dark-mode-shadow);

        border-color: var(--white);

        color: var(--white);
    }


    .what-to-expect-button:hover,
    .my-approach-button:hover,
    .about-me-button:hover,
    .faq-button:hover,
    .urgent-support-button:hover,
    .contact-button:hover {
        background: var(--sage);

        color: var(--dark-bg);
    }


    /* --------------------------------------------------------
       Charcoal card
       -------------------------------------------------------- */

    .charcoal-card {
        background: var(--dark-mode-shadow);
    }


    .charcoal-card a {
        color: var(--pale-nothing);
    }


    /* --------------------------------------------------------
       Mobile shadow
       -------------------------------------------------------- */

    @media (max-width: 1150px) {

        .hero {
            box-shadow:
                0 0 0 5px var(--dark-mode-shadow),
                0 10px 120px var(--shadow-halo);
        }

    }

}