/* ============================================================
   GW Hero -- TOP page hero + cards
   All classes scoped under .gw-hero / .gw-hero-cards
   ============================================================ */

/* -- Smooth scroll for anchor links -- */
html:has(.gw-hero) {
    scroll-behavior: smooth;
}

/* -- Reset: remove parent section/block spacing -- */
[data-vertical-spacing]:has(.gw-hero),
[data-vertical-spacing]:has(.gw-hero-cards),
:has(> .gw-hero),
:has(> .gw-hero-cards) {
    padding: 0 !important;
}

/* -- Full-bleed: override WP is-layout-constrained -- */
.gw-hero,
.gw-hero-cards {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================================
   Tab Bar
   ============================================================ */
.gw-hero__tabs {
    display: flex;
    background: #fff;
    padding: 10px 12px;
    border-bottom: none;
}

.gw-hero__tabs-inner {
    display: flex;
    width: 100%;
    background: #fffaf8;
    border: 1px solid #d5cfc6;
    border-radius: 40px;
    padding: 4px;
    gap: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.gw-hero__tab {
    flex: 1;
    text-align: center;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
    border: none;
    border-right: 1px solid #d5cfc6;
    background: transparent;
    border-radius: 0;
    margin: 0;
}

.gw-hero__tab:last-child {
    border-right: none;
}

.gw-hero__tab--active {
    background: var(--theme-palette-color-2, #2d6b4f);
    color: #fff;
    border-radius: 36px;
    border-right: none;
}

.gw-hero__tab--active + .gw-hero__tab {
    border-left: none;
}

.gw-hero__tab:hover {
    color: #333;
    text-decoration: none;
}

.gw-hero__tab--active:hover {
    color: #fff;
}

/* ============================================================
   Hero Visual
   ============================================================ */
.gw-hero__visual {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f0eb;
}

.gw-hero__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================================================
   Overlay (CTAs + tags positioned over bottom of image)
   ============================================================ */
.gw-hero__overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 63%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 0 3%;
    width: 80%;
    max-width: 320px;
    text-align: center;
}

/* ============================================================
   CTA Buttons
   ============================================================ */
.gw-hero__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 80%;
    max-width: 320px;
    padding: 11px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.gw-hero__cta:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none;
}

.gw-hero__cta--primary {
    background: var(--theme-palette-color-2, #2d6b4f);
    color: #fff;
}

.gw-hero__cta--primary:hover {
    color: #fff;
}

.gw-hero__cta--secondary {
    background: #fff;
    color: #333;
    border: 1.5px solid #ccc;
}

.gw-hero__cta--secondary:hover {
    color: #333;
}

.gw-hero__cta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gw-hero__cta-icon svg {
    width: 100%;
    height: 100%;
}

.gw-hero__cta-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: auto;
}

.gw-hero__cta-arrow svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   Tags (non-clickable pills)
   ============================================================ */
.gw-hero__tags {
    position: absolute;
    bottom: 2%;
    left: 0;
    right: 0;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;
}

.gw-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

.gw-hero__tag-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.65;
}

.gw-hero__tag-icon svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   Cards Below Hero
   ============================================================ */
.gw-hero-cards {
    background: transparent;
    padding: 0 12px 24px;
}

.gw-hero-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 12px;
}

.gw-hero-card {
    display: flex;
    flex-direction: column;
    background: #fffbf8;
    border: 1px solid #efefef;
    border-radius: 14px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.gw-hero-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    transform: translateY(-2px);
    text-decoration: none;
    color: #333;
}

/* -- Background image: fills entire card -- */
.gw-hero-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* -- Content overlay with gradient for readability -- */
.gw-hero-card__content {
    position: relative;
    z-index: 1;
    padding: 14px 10px 50px;
    background: linear-gradient(
        to bottom,
        #fffbf8 0%,
        #fffbf8 55%,
        rgba(255, 251, 248, 0.9) 70%,
        rgba(255, 251, 248, 0.5) 85%,
        rgba(255, 251, 248, 0) 100%
    );
}

.gw-hero-card__icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.gw-hero-card:nth-child(1) .gw-hero-card__icon-wrap { background: var(--theme-palette-color-2, #2d6b4f); color: #fff; }
.gw-hero-card:nth-child(2) .gw-hero-card__icon-wrap { background: #bfae96; color: #fff; }
.gw-hero-card:nth-child(3) .gw-hero-card__icon-wrap { background: #d4a0a0; color: #fff; }

.gw-hero-card__icon {
    width: 20px;
    height: 20px;
}

.gw-hero-card__icon svg {
    width: 100%;
    height: 100%;
}

.gw-hero-card__title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
    text-align: left;
    line-height: 1.4;
}

.gw-hero-card__desc {
    font-size: 10px;
    color: #555;
    line-height: 1.5;
    text-align: left;
    margin: 0;
}

.gw-hero-card__arrow {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: var(--theme-palette-color-2, #2d6b4f);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gw-hero-card:nth-child(2) .gw-hero-card__arrow {
    background: #bfae96;
}

.gw-hero-card:nth-child(3) .gw-hero-card__arrow {
    background: #d4a0a0;
}

.gw-hero-card__arrow svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   Responsive
   ============================================================ */

/* -- Tablet / small desktop -- */
@media (min-width: 768px) {
    /* PC: constrain to content width (match carousel) */
    .gw-hero,
    .gw-hero-cards {
        max-width: 750px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .gw-hero {
        border-radius: 12px;
        overflow: hidden;
    }

    .gw-hero__tabs {
        max-width: 600px;
        margin: 0 auto;
        padding: 12px 0;
    }

    /* PC: CTAs on image, small horizontal, tags hidden */
    .gw-hero__overlay {
        top: auto;
        bottom: 4%;
        padding: 0 3%;
        flex-direction: row;
        gap: 10px;
        width: auto;
        max-width: none;
    }

    .gw-hero__cta {
        flex: none;
        width: auto;
        max-width: none;
        font-size: 12px;
        padding: 8px 18px;
        margin-bottom: 0;
    }

    .gw-hero__tags {
        display: none;
    }

    .gw-hero-cards {
        padding: 0 0 32px;
    }

    .gw-hero-cards__grid {
        gap: 16px;
    }

    .gw-hero-card {
        min-height: 280px;
    }

    .gw-hero-card__content {
        padding: 20px 16px 60px;
    }

    .gw-hero-card__title {
        font-size: 16px;
    }

    .gw-hero-card__desc {
        font-size: 12px;
    }
}

/* -- Large desktop -- */
@media (min-width: 1024px) {
    .gw-hero__visual {
        max-height: 700px;
    }

    .gw-hero__img {
        max-height: 700px;
        object-position: center top;
    }

    .gw-hero__overlay {
        top: 80%;
        padding: 0 60px;
    }

    .gw-hero-cards__grid {
        max-width: none;
        gap: 20px;
    }
}

/* -- Mobile small -- */
@media (max-width: 374px) {
    .gw-hero__tab {
        font-size: 4vw;
    }

    .gw-hero__cta {
        font-size: 11px;
        padding: 9px 12px;
    }

    .gw-hero__tag {
        font-size: 10px;
        padding: 4px 8px;
    }
}
