/* =========================================================
   TASKHIKE HOMEPAGE
   CLEAN WHITE / BLACK / ORANGE / PEACH
========================================================= */

.taskhike-homepage {
    --th-white: #ffffff;
    --th-black: #000000;
    --th-orange: #ff6700;
    --th-peach: #ffd6b9;
    --th-cream: #fff0e6;

    --th-text: #171717;
    --th-muted: #666666;
    --th-light-text: #8a8a8a;

    --th-border: #e9e9e9;
    --th-soft-border: #f3ddd0;

    color: var(--th-text);
}


/* =========================================================
   EDITOR SECTION
========================================================= */

.taskhike-homepage .th-home-editor-section {
    padding-top: 20px;
}

.th-home-editor-card {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--th-border);
    border-radius: 22px;
    background: var(--th-white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.th-home-editor-card .section__header {
    margin-bottom: 24px;
}

.th-home-editor-content {
    color: var(--th-muted);
    font-size: 16px;
    line-height: 1.8;
}

.th-home-editor-content > :first-child {
    margin-top: 0;
}

.th-home-editor-content > :last-child {
    margin-bottom: 0;
}

.th-home-editor-content h1,
.th-home-editor-content h2,
.th-home-editor-content h3,
.th-home-editor-content h4 {
    color: var(--th-black);
    line-height: 1.25;
}

.th-home-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}


/* =========================================================
   GENERAL CONTENT SECTIONS
========================================================= */

.th-home-content-section {
    background: var(--th-white);
}

.th-home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.th-home-section-heading h2 {
    margin: 5px 0 8px;
    color: var(--th-black);
}

.th-home-section-heading p {
    max-width: 680px;
    margin: 0;
    color: var(--th-muted);
}

.th-home-view-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--th-orange);
    font-weight: 700;
    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.th-home-view-all:hover {
    color: var(--th-black);
    gap: 11px;
    text-decoration: none;
}


/* =========================================================
   CONTENT CARD GRID
========================================================= */

.th-home-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.th-home-content-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 100%;

    border: 1px solid var(--th-border);
    border-radius: 18px;

    background: var(--th-white);

    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.035);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.th-home-content-card:hover {
    transform: translateY(-5px);

    border-color: var(--th-peach);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   CONTENT CARD IMAGE
========================================================= */

.th-home-card-media {
    display: block;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--th-cream);
}

.th-home-card-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.th-home-content-card:hover .th-home-card-media img {
    transform: scale(1.035);
}

.th-home-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: var(--th-orange);

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    background: var(--th-cream);
}


/* =========================================================
   CONTENT CARD BODY
========================================================= */

.th-home-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 22px;
}

.th-home-card-label {
    display: inline-flex;
    align-self: flex-start;

    margin-bottom: 10px;
    padding: 5px 9px;

    border-radius: 999px;

    background: var(--th-cream);
    color: var(--th-orange);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.th-home-card-body h3 {
    margin: 0 0 9px;

    color: var(--th-black);

    font-size: 21px;
    line-height: 1.3;
}

.th-home-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.th-home-card-body h3 a:hover {
    color: var(--th-orange);
}

.th-home-card-body p {
    margin: 0;

    color: var(--th-muted);

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   CARD LINKS
========================================================= */

.th-home-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--th-orange);

    font-size: 14px;
    font-weight: 750;

    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.th-home-card-link:hover {
    color: var(--th-black);
    gap: 9px;
    text-decoration: none;
}

.th-home-card-body > .th-home-card-link {
    margin-top: auto;
    padding-top: 18px;
}


/* =========================================================
   CARD META
========================================================= */

.th-home-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: auto;
    padding-top: 18px;

    color: var(--th-light-text);

    font-size: 12px;
}

.th-home-card-meta .th-home-card-link {
    margin: 0;
    padding: 0;
}


/* =========================================================
   TASK MARKETPLACE
========================================================= */

.th-home-tasks {
    background: var(--th-cream);

    border-top: 1px solid var(--th-soft-border);
    border-bottom: 1px solid var(--th-soft-border);
}

.th-home-task-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.th-home-task-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 100%;

    padding: 0;

    overflow: hidden;

    border: 1px solid var(--th-border);
    border-radius: 18px;

    background: var(--th-white);

    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.th-home-task-card:hover {
    transform: translateY(-5px);

    border-color: var(--th-peach);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   TASK IMAGE
========================================================= */

.th-home-task-card__image {
    display: block;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--th-cream);
}

.th-home-task-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.th-home-task-card:hover .th-home-task-card__image img {
    transform: scale(1.035);
}

.th-home-task-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: var(--th-orange);

    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    background: var(--th-cream);
}


/* =========================================================
   TASK CARD CONTENT
========================================================= */

.th-home-task-card__content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 20px;
}

.th-home-task-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 14px;
}

.th-home-task-card__pill {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    background: var(--th-cream);
    color: var(--th-orange);

    font-size: 11px;
    font-weight: 800;
}

.th-home-task-card__points {
    color: var(--th-orange);

    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;
}

.th-home-task-card h3 {
    margin: 0 0 8px;

    color: var(--th-black);

    font-size: 19px;
    line-height: 1.3;
}

.th-home-task-card h3 a {
    color: inherit;
    text-decoration: none;
}

.th-home-task-card h3 a:hover {
    color: var(--th-orange);
}

.th-home-task-card p {
    margin: 0;

    color: var(--th-muted);

    font-size: 13px;
    line-height: 1.6;
}

.th-home-task-card__button {
    width: 100%;

    justify-content: center;

    margin-top: 18px;

    min-height: 44px;
}


/* =========================================================
   ADVERTISERS
========================================================= */

.th-home-advertisers {
    background: var(--th-white);
}

.th-home-ad-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.th-home-ad-grid article {
    min-height: 190px;

    padding: 22px;

    border: 1px solid var(--th-border);
    border-radius: 16px;

    background: var(--th-white);

    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.025);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.th-home-ad-grid article:hover {
    transform: translateY(-4px);

    border-color: var(--th-peach);

    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.07);
}

.th-home-ad-grid article > span {
    display: inline-flex;

    width: 36px;
    height: 36px;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--th-orange);
    color: var(--th-white);

    font-size: 11px;
    font-weight: 900;
}

.th-home-ad-grid h3 {
    margin: 16px 0 8px;

    color: var(--th-black);

    font-size: 17px;
}

.th-home-ad-grid p {
    margin: 0;

    color: var(--th-muted);

    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   HERO SECTION
   PURE WHITE — NO BLUE / NO GRADIENT
========================================================= */

.taskhike-homepage .hero,
.taskhike-homepage section.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(58px, 8vw, 96px) 0;
    background: #ffffff !important;
    background-color: #ffffff !important;
}


/*
   IMPORTANT:
   Decorative circles are disabled so the HERO itself
   remains completely clean and white.
*/

.taskhike-homepage .hero::before,
.taskhike-homepage .hero::after {
    display: none !important;
}


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

.taskhike-homepage .hero__content {
    position: relative;

    z-index: 2;

    max-width: 820px;
}

.taskhike-homepage .hero h1 {
    max-width: 780px;

    color: var(--th-black);
}

.taskhike-homepage .hero p {
    max-width: 700px;

    color: var(--th-muted);

    font-size: 17px;
    line-height: 1.7;
}


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

.taskhike-homepage .button {
    background: var(--th-orange);

    border-color: var(--th-orange);

    color: var(--th-white);

    box-shadow: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.taskhike-homepage .button:hover {
    background: var(--th-black);

    border-color: var(--th-black);

    color: var(--th-white);

    transform: translateY(-2px);

    box-shadow: 0 10px 24px rgba(255, 103, 0, 0.18);
}

.taskhike-homepage .button--secondary {
    background: var(--th-white);

    border-color: var(--th-black);

    color: var(--th-black);
}

.taskhike-homepage .button--secondary:hover {
    background: var(--th-black);

    border-color: var(--th-black);

    color: var(--th-white);
}


/* =========================================================
   HERO IMAGE
   If home.webp is already in your HTML, this only styles it.
========================================================= */

.taskhike-homepage .hero__media {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 0;
}

.taskhike-homepage .hero__media img {
    display: block;

    width: 100%;
    max-width: 680px;
    height: auto;

    object-fit: contain;

    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.08));
}


/* =========================================================
   WHY TASKHIKE
========================================================= */

.taskhike-homepage .th-home-why-us {
    background: var(--th-cream);

    border-top: 1px solid var(--th-soft-border);
    border-bottom: 1px solid var(--th-soft-border);
}

.th-home-why-us__header {
    max-width: 760px;

    margin: 0 auto 34px;

    text-align: center;
}

.th-home-why-us__header h2 {
    margin: 6px 0 10px;

    color: var(--th-black);
}

.th-home-why-us__header p {
    margin: 0;

    color: var(--th-muted);

    font-size: 16px;
    line-height: 1.7;
}

.th-home-why-us__grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.th-home-why-us__card {
    padding: 24px;

    border: 1px solid var(--th-soft-border);
    border-radius: 18px;

    background: var(--th-white);

    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.035);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.th-home-why-us__card:hover {
    transform: translateY(-4px);

    border-color: var(--th-peach);

    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.07);
}

.th-home-why-us__icon {
    display: inline-flex;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    margin-bottom: 17px;

    border-radius: 13px;

    background: var(--th-cream);

    color: var(--th-orange);
}

.th-home-why-us__icon svg {
    width: 22px;
    height: 22px;
}

.th-home-why-us__card h3 {
    margin: 0 0 8px;

    color: var(--th-black);

    font-size: 17px;
    line-height: 1.35;
}

.th-home-why-us__card p {
    margin: 0;

    color: var(--th-muted);

    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 980px) {

    .th-home-task-grid,
    .th-home-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .th-home-ad-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .th-home-why-us__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 680px) {

    .taskhike-homepage .hero {
        padding: 48px 0 54px;

        background: #ffffff !important;
        background-color: #ffffff !important;
    }

    .taskhike-homepage .hero::before,
    .taskhike-homepage .hero::after {
        display: none !important;
    }

    .taskhike-homepage .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);

        line-height: 1.05;
    }

    .taskhike-homepage .hero p {
        font-size: 15px;
    }

    .taskhike-homepage .hero__media {
        width: 100%;

        margin-top: 20px;
    }

    .taskhike-homepage .hero__media img {
        width: 100%;
        max-width: 100%;
    }

    .taskhike-homepage .button-row {
        display: grid;

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .taskhike-homepage .button-row .button {
        width: 100%;
    }

    .th-home-task-grid,
    .th-home-card-grid,
    .th-home-ad-grid,
    .th-home-why-us__grid {
        grid-template-columns: 1fr;
    }

    .th-home-section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 16px;

        margin-bottom: 22px;
    }

    .th-home-section-heading h2 {
        font-size: 25px;
    }

    .th-home-editor-card {
        padding: 24px 20px;

        border-radius: 18px;
    }

    .th-home-task-card__content,
    .th-home-card-body,
    .th-home-ad-grid article {
        padding: 18px;
    }

    .th-home-task-card__image,
    .th-home-card-media {
        aspect-ratio: 16 / 9;
    }

    .th-home-view-all {
        min-height: 42px;

        align-items: center;
    }

    .th-home-why-us__header {
        margin-bottom: 26px;
    }

    .th-home-why-us__card {
        padding: 20px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

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

    .th-home-content-card,
    .th-home-task-card,
    .th-home-ad-grid article,
    .th-home-why-us__card,
    .th-home-card-media img,
    .th-home-task-card__image img,
    .taskhike-homepage .button,
    .th-home-view-all,
    .th-home-card-link {
        transition: none;
    }
}