/* =========================================
   HERO SECTION
========================================= */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #f3efe5;
    color: #16372f;
    isolation: isolate;
}


/* =========================================
   BACKGROUND
========================================= */

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(244, 240, 230, 0.96) 0%,
            rgba(244, 240, 230, 0.88) 38%,
            rgba(244, 240, 230, 0.35) 68%,
            rgba(244, 240, 230, 0.12) 100%
        );
}


/* =========================================
   CONTAINER
========================================= */

.site-container {
    width: min(100% - 48px, 1320px);
    margin-inline: auto;
}


/* =========================================
   HERO LAYOUT
========================================= */

.hero__wrapper {
    min-height: 100vh;

    display: grid;
    grid-template-columns:
        minmax(520px, 1.08fr)
        minmax(500px, 0.92fr);

    align-items: center;

    gap: 25px;

    /*
     * Space for fixed/sticky header.
     * Reduced slightly so the hero fits
     * comfortably inside the first screen.
     */
    padding-top: 105px;
    padding-bottom: 0;
}

.hero__left {
    position: relative;
    z-index: 3;

    max-width: 700px;
}


/* =========================================
   HERO RIGHT / VISUAL AREA
========================================= */

.hero__right {
    position: relative;

    align-self: stretch;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    min-width: 0;

    /*
     * Previously 720px.
     * That was forcing the visual below
     * the first viewport.
     */
    min-height: 600px;
}

.hero__image-wrapper {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 600px;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}


/* =========================================
   ECO / PEACEBUILDING ARTWORK
========================================= */

.hero__person {
    position: absolute;
    z-index: 2;

    left: 50%;

    /*
     * Lift artwork from bottom so globe,
     * books and compass fit better.
     */
    bottom: 45px;

    display: block;

    width: auto;

    /*
     * Previously 96vh / 980px.
     * Slightly smaller so complete artwork
     * fits inside the first viewport.
     */
    height: min(80vh, 800px);

    max-width: none;

    object-fit: contain;
    object-position: bottom center;

    transform: translateX(-50%);
}


/* =========================================
   HERO CONTENT
========================================= */

.hero__content {
    max-width: 670px;
}


/* Eyebrow */

.hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px;

    margin-bottom: 24px;

    color: #74835e;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__separator {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #c7a45b;
}


/* =========================================
   HERO TITLE
========================================= */

.hero__title {
    margin: 0;

    color: #17352e;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(58px, 5.5vw, 96px);

    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.045em;
}

.hero__line {
    display: block;
}

.hero__title em {
    color: #8a9468;
    font-weight: 500;
}


/* =========================================
   DESCRIPTION
========================================= */

.hero__description {
    max-width: 610px;

    margin: 26px 0 0;

    color: #52615a;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================
   HERO BUTTONS
========================================= */

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 18px;

    margin-top: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 56px;

    padding: 0 26px;

    border-radius: 999px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}


/* Primary */

.hero-btn--primary {
    color: #ffffff;

    background: #173f35;

    box-shadow:
        0 14px 35px rgba(23, 63, 53, 0.2);
}

.hero-btn--primary:hover {
    color: #ffffff;

    background: #0f3028;

    box-shadow:
        0 18px 38px rgba(23, 63, 53, 0.28);
}


/* Button icon */

.hero-btn__icon {
    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-btn__icon img {
    display: block;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}


/* Secondary */

.hero-btn--secondary {
    color: #173f35;

    background: rgba(255, 255, 255, 0.64);

    border:
        1px solid rgba(23, 63, 53, 0.16);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-btn--secondary:hover {
    color: #173f35;
    background: #ffffff;
}

.hero-btn__circle {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e6e0ce;

    font-size: 18px;
}


/* =========================================
   SCROLL INDICATOR
========================================= */

.hero-scroll {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    margin-top: 32px;

    color: #68766e;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.04em;
}

.hero-scroll img {
    width: 34px;
    height: 34px;

    object-fit: contain;
}


/* =========================================
   QUOTE CARD
========================================= */

.hero-quote {
    position: absolute;
    z-index: 4;

    /*
     * Position card at lower-right.
     * This prevents it covering the centre
     * of the books as much as before.
     */
    right: 0;
    bottom: 58px;

    /*
     * Wider card = fewer text lines =
     * shorter overall card.
     */
    width: min(440px, 92%);

    padding: 14px 24px 13px;

    border:
        1px solid rgba(255, 255, 255, 0.72);

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.84);

    box-shadow:
        0 20px 50px rgba(35, 54, 47, 0.14);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* Quote icon */

.hero-quote__icon {
    width: 22px;

    margin-bottom: 5px;
}

.hero-quote__icon img {
    display: block;

    width: 100%;
    height: auto;
}


/* Quote text */

.hero-quote__text {
    margin: 0;

    color: #33473f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;
    font-style: italic;

    line-height: 1.4;
}


/* Quote author */

.hero-quote__author {
    display: flex;
    flex-direction: column;

    gap: 1px;

    margin-top: 8px;
}

.hero-quote__name {
    color: #173f35;

    font-size: 13px;
    font-weight: 800;
}

.hero-quote__designation {
    color: #7a877f;

    font-size: 11px;
}


/* Decorative quote leaf */

.hero-quote__leaf {
    position: absolute;

    right: -14px;
    top: -20px;

    width: 64px;

    pointer-events: none;
}

.hero-quote__leaf img {
    display: block;

    width: 100%;
    height: auto;
}


/* =========================================
   SOCIAL LINKS
========================================= */

.hero-social {
    position: absolute;
    z-index: 6;

    left: 24px;
    top: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 18px;

    transform: translateY(-50%);
}

.hero-social__label {
    writing-mode: vertical-rl;

    transform: rotate(180deg);

    color: #6a776f;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.hero-social__links {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.hero-social__link {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #173f35;

    background:
        rgba(255, 255, 255, 0.68);

    border:
        1px solid rgba(23, 63, 53, 0.1);

    box-shadow:
        0 8px 20px rgba(23, 63, 53, 0.08);

    text-decoration: none;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.hero-social__link:hover {
    color: #ffffff;

    background: #173f35;

    transform: translateY(-2px);
}

.hero-social .icon {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-social .icon-linkedin,
.hero-social .icon-youtube {
    fill: currentColor;
    stroke: none;
}


/* =========================================================
   MEDIUM DESKTOP / SMALL LAPTOP
   ========================================================= */

@media (max-width: 1180px) {

    .hero__wrapper {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(360px, 0.85fr);

        gap: 20px;
    }

    .hero-social {
        display: none;
    }

    .hero__right,
    .hero__image-wrapper {
        min-height: 580px;
    }

    .hero__person {
        height: min(74vh, 720px);
        bottom: 45px;
    }

    .hero-quote {
        right: 0;
        bottom: 48px;

        width: min(390px, 94%);
    }
}


/* =========================================================
   SHORT DESKTOP SCREENS
   Important for laptop screens with limited height
   ========================================================= */

@media (min-width: 901px) and (max-height: 820px) {

    .hero__wrapper {
        padding-top: 90px;
    }

    .hero__eyebrow {
        margin-bottom: 18px;
    }

    .hero__title {
        font-size: clamp(52px, 5vw, 82px);
    }

    .hero__description {
        margin-top: 20px;

        font-size: 16px;
        line-height: 1.6;
    }

    .hero__buttons {
        margin-top: 24px;
    }

    .hero-scroll {
        margin-top: 22px;
    }

    .hero__right,
    .hero__image-wrapper {
        min-height: 540px;
    }

    .hero__person {
        height: min(76vh, 700px);
        bottom: 30px;
    }

    .hero-quote {
        bottom: 35px;

        width: min(410px, 92%);

        padding:
            12px 21px 11px;
    }

    .hero-quote__text {
        font-size: 13px;
        line-height: 1.35;
    }

    .hero-quote__author {
        margin-top: 6px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .hero {
        min-height: auto;
    }

    .hero__overlay {
        background:
            rgba(244, 240, 230, 0.88);
    }

    .hero__wrapper {
        min-height: auto;

        grid-template-columns: 1fr;

        gap: 25px;

        padding-top: 135px;
        padding-bottom: 45px;
    }

    .hero__left {
        max-width: none;

        text-align: center;
    }

    .hero__content {
        margin-inline: auto;
    }

    .hero__eyebrow,
    .hero__buttons {
        justify-content: center;
    }

    .hero__description {
        margin-inline: auto;
    }

    .hero-scroll {
        justify-content: center;
    }

    .hero__right {
        min-height: 570px;
    }

    .hero__image-wrapper {
        min-height: 570px;
    }

    .hero__person {
        left: 50%;
        bottom: 25px;

        height: auto;

        width: min(760px, 115%);

        max-width: none;

        transform: translateX(-50%);
    }

    .hero-quote {
        right: 50%;
        bottom: 20px;

        width: min(420px, 88%);

        transform: translateX(50%);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .site-container {
        width:
            min(100% - 30px, 1320px);
    }

    .hero__wrapper {
        padding-top: 115px;
        padding-bottom: 25px;
    }

    .hero__eyebrow {
        justify-content: center;

        gap: 8px;

        margin-bottom: 18px;

        font-size: 10px;

        letter-spacing: 0.12em;
    }

    .hero__title {
        font-size:
            clamp(44px, 13vw, 66px);

        line-height: 1.02;
    }

    .hero__description {
        margin-top: 20px;

        font-size: 16px;
        line-height: 1.65;
    }

    .hero__buttons {
        flex-direction: column;

        align-items: stretch;

        margin-top: 26px;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-scroll {
        margin-top: 24px;
    }

    .hero__right,
    .hero__image-wrapper {
        min-height: 500px;
    }

    .hero__person {
        bottom: 30px;

        width: 125%;
        height: auto;

        max-width: none;
    }

    .hero-quote {
        right: 50%;
        bottom: 12px;

        width: calc(100% - 12px);

        padding: 16px 18px 15px;

        border-radius: 18px;

        transform: translateX(50%);
    }

    .hero-quote__text {
        font-size: 14px;
        line-height: 1.4;
    }

    .hero-quote__leaf {
        right: -8px;
        top: -22px;

        width: 60px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .hero__wrapper {
        padding-top: 105px;
    }

    .hero__title {
        font-size:
            clamp(40px, 12.5vw, 54px);
    }

    .hero__right,
    .hero__image-wrapper {
        min-height: 450px;
    }

    .hero__person {
        width: 135%;
        bottom: 35px;
    }

    .hero-quote {
        width: calc(100% - 8px);

        padding: 14px 16px 13px;
    }

    .hero-quote__text {
        font-size: 13px;
    }

    .hero-quote__name {
        font-size: 12px;
    }

    .hero-quote__designation {
        font-size: 10px;
    }
}