/* ============================================================
   WALKER WILD
   GUIDES HUB
   ============================================================ */

.guides-page {
    background: #fff;
    color: var(--color-text, #202020);
}


/* ============================================================
   SHARED
   ============================================================ */

.guides-container {
    width: min(1180px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.guides-section {
    padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.guides-eyebrow {
    margin: 0 0 0.7rem;
    color: #bd7000;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guides-eyebrow--light {
    color: #dc941d;
}

.guides-section__header {
    max-width: 720px;
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.guides-section__title {
    margin: 0;
    color: #0b463e;
    font-family: var(--font-heading, inherit);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}


/* ============================================================
   BUTTONS / LINKS
   ============================================================ */

.guides-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease;
}

.guides-button:hover {
    transform: translateY(-1px);
}

.guides-button--primary {
    background: #d78711;
    color: #111;
}

.guides-button--primary:hover {
    background: #e39723;
}

.guides-button--secondary {
    border-color: #263f3a;
    background: transparent;
    color: #183d36;
}

.guides-button--secondary:hover {
    background: #f4f1e9;
}

.guides-button:focus-visible,
.guides-text-link:focus-visible,
.guides-final__links a:focus-visible,
.guides-article a:focus-visible {
    outline: 3px solid #d78711;
    outline-offset: 3px;
}

.guides-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #9f5f00;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.guides-text-link span {
    transition: transform 150ms ease;
}

.guides-text-link:hover span {
    transform: translateX(3px);
}

.guides-text-link--light {
    color: #efb34c;
}


/* ============================================================
   HERO
   ============================================================ */

.guides-hero {
    display: grid;
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    min-height: 680px;
    background: #fff;
}

.guides-hero__media {
    min-width: 0;
    margin: 0;
    overflow: hidden;
}

.guides-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.guides-hero__content {
    display: flex;
    min-width: 0;
    align-items: center;
}

.guides-hero__inner {
    width: 100%;
    padding: clamp(2.5rem, 5vw, 5rem);
}

.guides-hero__title {
    margin: 0;
    color: #0b463e;
    font-family: var(--font-heading, inherit);
    font-size: clamp(2.7rem, 4.8vw, 5.2rem);
    font-weight: 850;
    line-height: 0.94;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.guides-hero__intro {
    max-width: 590px;
    margin: 1.6rem 0 0;
    color: #606060;
    font-size: 1rem;
    line-height: 1.7;
}

.guides-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}


/* ============================================================
   ORIENTATION
   ============================================================ */

.guides-orientation {
    background: #f4f1e9;
}

.guides-orientation__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guides-path {
    position: relative;
    min-height: 430px;
    padding: clamp(2rem, 4vw, 3.5rem);
}

.guides-path--articles {
    border-top: 2px solid #173d36;
    background: #fff;
}

.guides-path--tutorials {
    border-top: 2px solid #d78711;
    background: #073b34;
}

.guides-path__number {
    display: block;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    color: #bd7000;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.guides-path--tutorials .guides-path__number {
    color: #dc941d;
}

.guides-path__eyebrow {
    margin: 0 0 0.65rem;
    color: #6c6c6c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.guides-path--tutorials .guides-path__eyebrow {
    color: rgba(255, 255, 255, 0.62);
}

.guides-path h3 {
    margin: 0;
    color: #173d36;
    font-family: var(--font-heading, inherit);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.guides-path--tutorials h3 {
    color: #fff;
}

.guides-path > p:not(.guides-path__eyebrow) {
    max-width: 520px;
    margin: 1.2rem 0 2rem;
    color: #606060;
    font-size: 0.94rem;
    line-height: 1.7;
}

.guides-path--tutorials > p:not(.guides-path__eyebrow) {
    color: rgba(255, 255, 255, 0.8);
}


/* ============================================================
   TUTORIALS
   ============================================================ */

.guides-tutorials {
    scroll-margin-top: 80px;
    background: #fff;
}

.guides-tutorials__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: end;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.guides-tutorials__intro {
    max-width: 520px;
    margin: 0;
    color: #606060;
    font-size: 1rem;
    line-height: 1.75;
}

.guides-tutorials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guides-tutorial {
    min-width: 0;
    padding: 2rem clamp(1.5rem, 3vw, 2.5rem) 2.5rem;
    border-top: 2px solid #173d36;
}

.guides-tutorial + .guides-tutorial {
    border-left: 1px solid #ddd9d0;
}

.guides-tutorial__topline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #bd7000;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guides-tutorial h3 {
    margin: 2rem 0 0;
    color: #173d36;
    font-family: var(--font-heading, inherit);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.guides-tutorial ol {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: tutorial-step;
}

.guides-tutorial li {
    position: relative;
    padding: 0.85rem 0 0.85rem 2.1rem;
    border-top: 1px solid #ece8df;
    color: #5e5e5e;
    font-size: 0.88rem;
    line-height: 1.55;
    counter-increment: tutorial-step;
}

.guides-tutorial li::before {
    position: absolute;
    top: 0.85rem;
    left: 0;
    color: #a76400;
    font-size: 0.72rem;
    font-weight: 800;
    content: counter(tutorial-step, decimal-leading-zero);
}

.guides-tutorials__note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: clamp(2rem, 4vw, 3.5rem);
    padding: 1.5rem 0;
    border-top: 1px solid #d8d3c8;
    border-bottom: 1px solid #d8d3c8;
}

.guides-tutorials__note-label {
    margin: 0 0 0.35rem;
    color: #173d36;
    font-size: 0.9rem;
    font-weight: 800;
}

.guides-tutorials__note > div > p:last-child {
    max-width: 720px;
    margin: 0;
    color: #606060;
    font-size: 0.88rem;
    line-height: 1.6;
}


/* ============================================================
   LANDSCAPE
   ============================================================ */

.guides-landscape {
    position: relative;
    min-height: clamp(480px, 55vw, 720px);
    overflow: hidden;
    background: #073b34;
}

.guides-landscape__media {
    position: absolute;
    inset: 0;
    margin: 0;
}

.guides-landscape__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.guides-landscape__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(4, 38, 33, 0.9) 0%,
            rgba(4, 38, 33, 0.64) 42%,
            rgba(4, 38, 33, 0.14) 78%,
            rgba(4, 38, 33, 0.02) 100%
        );
}

.guides-landscape__content {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(1180px, calc(100% - 2.5rem));
    min-height: inherit;
    flex-direction: column;
    justify-content: center;
    margin-inline: auto;
}

.guides-landscape__title {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-family: var(--font-heading, inherit);
    font-size: clamp(2.7rem, 6vw, 5.5rem);
    font-weight: 850;
    line-height: 0.94;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.guides-landscape__content > p:last-child {
    max-width: 500px;
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.6;
}


/* ============================================================
   ARTICLES
   ============================================================ */

.guides-articles {
    background: #f4f1e9;
}

.guides-articles__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.guides-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
}

.guides-article {
    min-width: 0;
    background: #fff;
}

.guides-article__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.guides-article__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.guides-article__media:hover img {
    transform: scale(1.025);
}

.guides-article__content {
    padding: 1.5rem;
}

.guides-article__category {
    margin: 0 0 0.7rem;
    color: #bd7000;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.guides-article h3 {
    margin: 0;
    font-family: var(--font-heading, inherit);
    font-size: 1.15rem;
    line-height: 1.25;
}

.guides-article h3 a {
    color: #173d36;
    text-decoration: none;
}

.guides-article__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.9rem 0 1.3rem;
    color: #646464;
    font-size: 0.86rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.guides-articles__empty {
    margin: 0;
    color: #606060;
}


/* ============================================================
   FINAL
   ============================================================ */

.guides-final {
    background: #073b34;
    padding-block: clamp(3.5rem, 6vw, 5rem);
}

.guides-final__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: center;
}

.guides-final h2 {
    max-width: 520px;
    margin: 0;
    color: #fff;
    font-family: var(--font-heading, inherit);
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.guides-final__links {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.guides-final__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.guides-final__links a span {
    color: #dc941d;
    transition: transform 150ms ease;
}

.guides-final__links a:hover span {
    transform: translateX(3px);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1050px) {

    .guides-hero {
        grid-template-columns: 54% 46%;
        min-height: 600px;
    }

    .guides-hero__inner {
        padding: 2.5rem;
    }

    .guides-hero__title {
        font-size: clamp(2.5rem, 5vw, 3.8rem);
    }

}


/* ============================================================
   SMALL TABLET
   ============================================================ */

@media (max-width: 900px) {

    .guides-hero {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .guides-hero__media {
        height: 360px;
    }

    .guides-hero__content {
        min-height: 380px;
    }

    .guides-hero__inner {
        padding: 3rem 2rem;
    }

    .guides-orientation__grid {
        grid-template-columns: 1fr;
    }

    .guides-path {
        min-height: 360px;
    }

    .guides-tutorials__heading,
    .guides-final__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .guides-tutorials__grid,
    .guides-articles__grid {
        grid-template-columns: 1fr;
    }

    .guides-tutorial {
        padding-inline: 0;
    }

    .guides-tutorial + .guides-tutorial {
        border-left: 0;
    }

    .guides-article {
        display: grid;
        grid-template-columns: minmax(220px, 38%) minmax(0, 62%);
    }

    .guides-article__media {
        height: 100%;
        aspect-ratio: auto;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .guides-container {
        width: min(100% - 2rem, 1180px);
    }

    .guides-section {
        padding-block: 3.75rem;
    }


    /* HERO */

    .guides-hero__media {
        height: 260px;
    }

    .guides-hero__content {
        min-height: auto;
    }

    .guides-hero__inner {
        padding: 2.5rem 1.25rem 3rem;
    }

    .guides-hero__title {
        font-size: clamp(2.25rem, 11vw, 3.1rem);
    }

    .guides-hero__intro {
        margin-top: 1.25rem;
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .guides-hero__actions {
        flex-direction: column;
    }

    .guides-button {
        width: 100%;
    }


    /* TITLES */

    .guides-section__title {
        font-size: clamp(1.8rem, 9vw, 2.7rem);
    }


    /* PATHS */

    .guides-path {
        min-height: 0;
        padding: 2rem 1.25rem 2.5rem;
    }

    .guides-path__number {
        margin-bottom: 3rem;
    }


    /* TUTORIALS */

    .guides-tutorials__heading {
        gap: 2rem;
    }

    .guides-tutorial {
        padding-top: 1.5rem;
    }

    .guides-tutorials__note {
        align-items: flex-start;
        flex-direction: column;
    }


    /* IMAGE */

    .guides-landscape {
        min-height: 420px;
    }

    .guides-landscape__overlay {
        background:
            linear-gradient(
                0deg,
                rgba(4, 38, 33, 0.93) 0%,
                rgba(4, 38, 33, 0.62) 58%,
                rgba(4, 38, 33, 0.12) 100%
            );
    }

    .guides-landscape__content {
        width: calc(100% - 2rem);
        justify-content: flex-end;
        padding-bottom: 3rem;
    }

    .guides-landscape__title {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }


    /* ARTICLES */

    .guides-articles__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .guides-article {
        display: block;
    }

    .guides-article__media {
        aspect-ratio: 3 / 2;
    }


    /* FINAL */

    .guides-final__inner {
        gap: 2.5rem;
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .guides-button,
    .guides-text-link span,
    .guides-final__links a span,
    .guides-article__media img {
        transition: none;
    }

}
