/* =========================================================
   THE CYBARTENDER — HOMEPAGE.CSS
   MASTER CLEAN VERSION
   FILE:
   /assets/css/homepage.css
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

body {
    background: #f7f4ef;
    color: #2d2926;
    overflow-x: hidden;
}

.home .site-content {
    max-width: 1920px;
    margin: 0 auto;
}

.home img {
    display: block;
    max-width: 100%;
    height: auto;
}

.home a {
    text-decoration: none;
}

.home h1,
.home h2,
.home h3,
.home h4,
.home h5,
.home h6,
.home p {
    margin-top: 0;
}


/* =========================================================
   HEADER
========================================================= */

.ast-site-header-wrap {
    background: #f7f4ef;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.site-branding img,
.custom-logo-link img {
    width: auto;
    max-height: 56px;
}

.main-header-menu > .menu-item > a {
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #2f2c29;
}

.main-header-menu .menu-link {
    padding-left: 18px;
    padding-right: 18px;
}


/* =========================================================
   BUTTONS
========================================================= */

.home .wp-block-buttons {
    gap: 14px;
}

.home .wp-block-button__link,
.home .ast-button,
.home button,
.home input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 34px;

    border: none;

    background: #c9963a;

    font-family: "Inter", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: #ffffff;

    transition:
        background .25s ease,
        transform .25s ease,
        opacity .25s ease;
}

.home .wp-block-button__link:hover,
.home .ast-button:hover,
.home button:hover,
.home input[type="submit"]:hover {
    background: #b88429;
    transform: translateY(-1px);
}


/* =========================================================
   HERO
   CLASS:
   cyb-editorial-feature
========================================================= */

.home .cyb-editorial-feature {
    margin-top: 5rem;
    margin-bottom: 8rem;
}

.home .cyb-editorial-feature .wp-block-columns {
    align-items: center;
    gap: 90px;
}

.home .cyb-editorial-feature .wp-block-column:first-child img {
    width: 100%;

    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.home .cyb-editorial-feature .wp-block-column:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home .cyb-editorial-feature h6 {
    margin-bottom: 1.4rem;

    font-family: "Inter", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: #8d8478;
}

.home .cyb-editorial-feature h2 {
    margin-bottom: 1.8rem;

    font-family: "Inter", sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.07em;

    color: #5c5752;
}

.home .cyb-editorial-feature p {
    max-width: 560px;

    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.9;

    color: #7e756c;
}

.home .cyb-editorial-feature .wp-block-button {
    margin-top: 2rem;
}


/* =========================================================
   SERVICES
   CLASS:
   cyb-services
========================================================= */

.home .cyb-services {
    margin-top: 8rem;
    margin-bottom: 8rem;
}

.home .cyb-services .wp-block-columns {
    gap: 48px;
}

.home .cyb-services .wp-block-column {
    display: flex;
    flex-direction: column;

    height: 100%;
}

.home .cyb-services .wp-block-group {
    display: flex;
    flex-direction: column;

    flex: 1;
}

.home .cyb-services .wp-block-image img {
    width: 100%;

    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.home .cyb-services p:first-child {
    margin-top: 1.4rem;
    margin-bottom: 1rem;

    font-family: "Inter", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: #a19589;
}

.home .cyb-services h3 {
    margin-bottom: 1rem;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 2.4vw, 3rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.045em;

    color: #b47839;
}

.home .cyb-services p {
    font-family: "Inter", sans-serif;
    font-size: 0.96rem;
    line-height: 1.9;

    color: #7e756c;
}

.home .cyb-services .wp-block-buttons {
    margin-top: auto;
    padding-top: 2rem;
}


/* =========================================================
   FEATURED STORIES
   CLASS:
   cyb-featured-stories
========================================================= */

.home .cyb-featured-stories {
    margin-top: 5rem;
    margin-bottom: 8rem;
}

.home .cyb-featured-stories .wp-block-columns {
    gap: 48px;
}

.home .cyb-featured-stories .wp-block-column {
    text-align: center;
}

.home .cyb-featured-stories h6 {
    margin-bottom: 1rem;

    font-family: "Inter", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: #8f8578;
}

.home .cyb-featured-stories h3 {
    margin-bottom: 1rem;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 2.1vw, 3rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.045em;

    color: #b47839;
}

.home .cyb-featured-stories p {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    line-height: 1.9;

    color: #7e756c;
}


/* =========================================================
   JOURNAL LABEL
========================================================= */

.home .cyb-section-label {
    display: inline-block;

    margin-bottom: 1rem;

    font-family: "Inter", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: #a19589;
}


/* =========================================================
   QUERY LOOP
   CLASS:
   cyb-query-loop

   TEMPLATE:
   cyb-query-grid
========================================================= */

.home .cyb-query-loop {
    position: relative;

    margin-top: 8rem;
    margin-bottom: 8rem;

    z-index: 1;
}

.home .cyb-query-grid {
    position: relative;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 44px;

    width: min(1320px, calc(100% - 80px));

    margin: 0 auto !important;
    padding: 0;

    list-style: none;

    z-index: 2;
}

.home .cyb-query-grid li {
    position: relative;

    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;

    z-index: 3;
}

.home .cyb-query-grid a {
    position: relative;

    z-index: 999;

    pointer-events: auto !important;
}

.home .cyb-query-grid .wp-block-post-featured-image {
    overflow: hidden;

    margin-bottom: 24px;

    background: #ece5dd;
}

.home .cyb-query-grid .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;

    aspect-ratio: 3 / 4;

    object-fit: cover;

    transition:
        transform .8s ease,
        opacity .3s ease;
}

.home .cyb-query-grid li:hover .wp-block-post-featured-image img {
    transform: scale(1.03);
}

.home .cyb-query-grid .wp-block-post-date {
    margin-bottom: 16px;

    font-family: "Inter", sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #b0a498;
}

.home .cyb-query-grid .wp-block-post-title {
    margin-bottom: 18px;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 2.2vw, 3rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.home .cyb-query-grid .wp-block-post-title a {
    color: #5c5752;

    transition:
        opacity .25s ease,
        color .25s ease;
}

.home .cyb-query-grid .wp-block-post-title a:hover {
    opacity: .72;
}

.home .cyb-query-grid .wp-block-post-excerpt p {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    line-height: 1.9;

    color: #7d756d;
}


/* =========================================================
   QUERY LOOP CLICK FIX
========================================================= */

.home .cyb-query-loop *,
.home .cyb-query-grid *,
.home .cyb-query-grid::before,
.home .cyb-query-grid::after,
.home .cyb-query-grid li::before,
.home .cyb-query-grid li::after {
    pointer-events: none;
}

.home .cyb-query-grid a,
.home .cyb-query-grid a *,
.home .cyb-query-grid .wp-block-post-title,
.home .cyb-query-grid .wp-block-post-featured-image,
.home .cyb-query-grid .wp-block-post-featured-image a,
.home .cyb-query-grid .wp-block-post-title a {
    pointer-events: auto !important;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #f2ede6;
}

.site-footer p,
.site-footer li,
.site-footer a {
    font-family: "Inter", sans-serif;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .home .cyb-editorial-feature .wp-block-columns,
    .home .cyb-services .wp-block-columns,
    .home .cyb-featured-stories .wp-block-columns {
        gap: 42px;
    }

    .home .cyb-query-grid {
        grid-template-columns: 1fr;

        width: calc(100% - 40px);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 544px) {

    .home .cyb-editorial-feature,
    .home .cyb-services,
    .home .cyb-featured-stories,
    .home .cyb-query-loop {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .home .cyb-editorial-feature .wp-block-columns {
        gap: 40px;
    }

    .home .cyb-editorial-feature h2 {
        font-size: 2.8rem;
        line-height: 1;
    }

    .home .cyb-services h3,
    .home .cyb-featured-stories h3,
    .home .cyb-query-grid .wp-block-post-title {
        font-size: 2.2rem;
    }

    .home .wp-block-buttons {
        flex-direction: column;
        align-items: center;
    }

    .home .wp-block-button__link {
        width: 100%;
        max-width: 320px;
    }

    .home .cyb-query-grid {
        grid-template-columns: 1fr;

        width: calc(100% - 32px);

        gap: 56px;
    }
}