/**
 * Homepage redesign styles (front page only).
 *
 * Markup lives in the Home page content (post 57467) as wp:html blocks
 * inside an alignfull .tsa-home group, plus the [tsa_last_spots] and
 * [tsa_home_stories] shortcodes rendered from inc/homepage.php.
 *
 * Palette comes from the "Take Shape Home Redesign" design project;
 * typography uses the site's made-mountain / made-okine font presets.
 */

.tsa-home {
    --tsa-cream: #F4EFE7;
    --tsa-cream-2: #FBF8F2;
    --tsa-teal: #0E4A4E;
    --tsa-teal-2: #146A6F;
    --tsa-amber: #E39A3B;
    --tsa-gold: #E9B96A;
    --tsa-ochre: #B0771F;
    --tsa-ink: #1C2422;
    --tsa-body-color: #3A4744;
    --tsa-line: rgba(14, 74, 78, 0.14);
    --tsa-head-font: var(--wp--preset--font-family--made-mountain);
    --tsa-body-font: var(--wp--preset--font-family--made-okine);
    --tsa-pad-x: clamp(20px, 4vw, 48px);
    background: var(--tsa-cream);
    color: var(--tsa-ink);
    font-family: var(--tsa-body-font);
}

.tsa-home ::selection {
    background: var(--tsa-teal);
    color: var(--tsa-cream);
}

.tsa-home a {
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tsa-home h1,
.tsa-home h2,
.tsa-home h3,
.tsa-home h4 {
    font-family: var(--tsa-head-font);
    font-weight: 400;
    padding: 0;
}

.tsa-home .tsa-section {
    padding: clamp(64px, 8vw, 112px) var(--tsa-pad-x);
}

.tsa-home .tsa-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.tsa-home .tsa-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tsa-ochre);
    margin-bottom: 16px;
}

.tsa-home .tsa-h2 {
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--tsa-teal);
    margin: 0 0 24px;
    text-wrap: balance;
}

.tsa-home .tsa-link-underline {
    font-weight: 700;
    font-size: 16px;
    color: var(--tsa-teal);
    border-bottom: 2px solid var(--tsa-amber);
    padding-bottom: 4px;
}

.tsa-home .tsa-link-underline:hover {
    color: var(--tsa-amber);
}

.tsa-home .tsa-arrow-link {
    font-weight: 700;
    font-size: 14px;
    color: var(--tsa-ochre);
}

.tsa-home .tsa-arrow-link:hover {
    color: var(--tsa-teal);
}

/* ------------------------------------------------------------------ Hero */

.tsa-home .tsa-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tsa-home .tsa-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tsa-home .tsa-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 42, 44, 0.35) 0%, rgba(12, 38, 40, 0.55) 50%, rgba(10, 34, 36, 0.75) 100%);
}

.tsa-home .tsa-hero__content {
    position: relative;
    /* top padding clears the overlaid site header (--wp--custom--header-height) */
    padding: calc(var(--wp--custom--header-height, 83px) + 64px) var(--tsa-pad-x) 80px;
    max-width: 1200px;
    text-align: center;
}

.tsa-home .tsa-hero__title {
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    line-height: 1;
    color: var(--tsa-cream);
    margin: 0 auto 24px;
    max-width: 16ch;
    text-wrap: balance;
}

.tsa-home .tsa-hero__title em {
    font-style: normal;
    color: var(--tsa-gold);
}

.tsa-home .tsa-hero__lede {
    font-size: 19px;
    line-height: 1.55;
    color: rgba(244, 239, 231, 0.9);
    max-width: 56ch;
    margin: 0 auto 32px;
    font-weight: 500;
}

.tsa-home .tsa-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Pill buttons */

.tsa-home .tsa-btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
}

.tsa-home .tsa-btn--amber {
    background: var(--tsa-amber);
    color: var(--tsa-ink);
}

.tsa-home .tsa-btn--amber:hover {
    background: var(--tsa-cream);
    color: var(--tsa-ink);
}

.tsa-home .tsa-btn--ghost {
    border: 1.5px solid rgba(244, 239, 231, 0.6);
    color: var(--tsa-cream);
    font-weight: 600;
}

.tsa-home .tsa-btn--ghost:hover {
    background: rgba(244, 239, 231, 0.15);
    color: var(--tsa-cream);
}

.tsa-home .tsa-btn--teal {
    background: var(--tsa-teal);
    color: var(--tsa-cream);
}

.tsa-home .tsa-btn--teal:hover {
    background: var(--tsa-amber);
    color: var(--tsa-ink);
}

/* ----------------------------------------------------------- Who we are */

.tsa-home .tsa-who {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.tsa-home .tsa-who p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--tsa-body-color);
    margin: 0 0 16px;
}

.tsa-home .tsa-who p:last-child {
    margin-bottom: 0;
}

.tsa-home .tsa-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 28px;
}

.tsa-home .tsa-pill {
    padding: 10px 20px;
    border-radius: 999px;
    font-family: var(--tsa-head-font);
    font-size: 16px;
    letter-spacing: 0.02em;
}

.tsa-home .tsa-pill--ground { background: var(--tsa-teal); color: var(--tsa-cream); }
.tsa-home .tsa-pill--move { background: var(--tsa-teal-2); color: var(--tsa-cream); }
.tsa-home .tsa-pill--connect { background: var(--tsa-amber); color: var(--tsa-ink); }
.tsa-home .tsa-pill--grow { background: var(--tsa-ink); color: var(--tsa-cream); }

.tsa-home .tsa-who__figure {
    position: relative;
    margin: 0;
}

.tsa-home .tsa-who__figure img {
    width: 100%;
    display: block;
    border-radius: 20px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.tsa-home .tsa-who__badge {
    position: absolute;
    left: -24px;
    bottom: 32px;
    background: var(--tsa-cream);
    border-radius: 14px;
    padding: 16px 22px;
    box-shadow: 0 12px 32px rgba(14, 74, 78, 0.25);
    font-family: var(--tsa-head-font);
    color: var(--tsa-teal);
    font-size: 17px;
}

/* ------------------------------------------------------------- Quiz CTA */

.tsa-home .tsa-quiz {
    background: var(--tsa-teal);
}

.tsa-home .tsa-quiz__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.tsa-home .tsa-quiz__inner h2 {
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1.08;
    color: var(--tsa-cream);
    margin: 0 0 16px;
    text-wrap: balance;
}

.tsa-home .tsa-quiz__inner p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(244, 239, 231, 0.8);
    margin: 0;
    max-width: 60ch;
}

.tsa-home .tsa-quiz .tsa-btn--amber {
    padding: 18px 32px;
    font-size: 17px;
    white-space: nowrap;
    justify-self: end;
}

/* ----------------------------------------------------- Section headers */

.tsa-home .tsa-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tsa-home .tsa-section-head .tsa-h2 {
    margin-bottom: 0;
}

/* ---------------------------------------------------- Last spot feature */

.tsa-home .tsa-lastspot-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: var(--tsa-cream-2);
    border: 1px solid var(--tsa-line);
    border-radius: 24px;
    overflow: hidden;
}

.tsa-home .tsa-lastspot-card + .tsa-lastspot-card {
    margin-top: 24px;
}

.tsa-home .tsa-lastspot-card__media {
    position: relative;
    min-height: 380px;
    background-size: cover;
    background-position: center;
}

.tsa-home .tsa-lastspot-card__badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.tsa-home .tsa-badge {
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.tsa-home .tsa-badge--stock {
    background: var(--tsa-amber);
    color: var(--tsa-ink);
}

.tsa-home .tsa-badge--plan {
    background: var(--tsa-cream);
    color: var(--tsa-teal);
}

.tsa-home .tsa-lastspot-card__body {
    padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3.5vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tsa-home .tsa-lastspot-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tsa-teal-2);
}

.tsa-home .tsa-lastspot-card__meta .tsa-dot {
    color: var(--tsa-ochre);
}

.tsa-home .tsa-lastspot-card__title {
    font-size: clamp(30px, 3.2vw, 44px);
    margin: 0;
    color: var(--tsa-teal);
    line-height: 1;
}

.tsa-home .tsa-lastspot-card__title a {
    color: inherit;
}

.tsa-home .tsa-lastspot-card__title a:hover {
    color: var(--tsa-amber);
}

.tsa-home .tsa-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tsa-home .tsa-stat {
    background: var(--tsa-cream);
    border: 1px solid rgba(14, 74, 78, 0.16);
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
    min-width: 72px;
}

.tsa-home .tsa-stat__value {
    font-family: var(--tsa-head-font);
    font-size: 22px;
    color: var(--tsa-teal);
}

.tsa-home .tsa-stat__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tsa-body-color);
}

.tsa-home .tsa-lastspot-card__footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--tsa-line);
    padding-top: 20px;
    flex-wrap: wrap;
}

.tsa-home .tsa-price__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tsa-body-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tsa-home .tsa-price__value {
    font-family: var(--tsa-head-font);
    font-size: 30px;
    color: var(--tsa-teal);
}

.tsa-home .tsa-price__value .tsa-price__was {
    font-size: 20px;
    text-decoration: line-through;
    opacity: 0.55;
    margin-right: 10px;
}

.tsa-home .tsa-price__members {
    font-size: 14px;
    color: var(--tsa-teal-2);
    font-weight: 600;
}

/* --------------------------------------------------- Adventure category */

.tsa-home .tsa-band {
    background: var(--tsa-cream-2);
    border-top: 1px solid rgba(14, 74, 78, 0.1);
    border-bottom: 1px solid rgba(14, 74, 78, 0.1);
}

.tsa-home .tsa-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tsa-home .tsa-card {
    display: flex;
    flex-direction: column;
    background: var(--tsa-cream);
    border: 1px solid var(--tsa-line);
    border-radius: 20px;
    overflow: hidden;
    color: var(--tsa-ink);
}

.tsa-home .tsa-card:hover {
    border-color: var(--tsa-amber);
    color: var(--tsa-ink);
}

.tsa-home .tsa-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.tsa-home .tsa-card__body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.tsa-home .tsa-card__body h3 {
    font-size: 22px;
    margin: 0;
    color: var(--tsa-teal);
}

.tsa-home .tsa-card__body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--tsa-body-color);
    flex: 1;
}

/* --------------------------------------------------------- Testimonials */

.tsa-home .tsa-testimonials {
    background: var(--tsa-teal);
}

.tsa-home .tsa-testimonials__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.tsa-home .tsa-testimonials .tsa-eyebrow {
    color: var(--tsa-gold);
}

.tsa-home .tsa-testimonials .tsa-h2 {
    color: var(--tsa-cream);
    margin-bottom: 32px;
}

.tsa-home .tsa-testimonials__grid img {
    width: 100%;
    border-radius: 20px;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.tsa-home .tsa-quotes {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tsa-home .tsa-quote {
    background: rgba(244, 239, 231, 0.07);
    border: 1px solid rgba(244, 239, 231, 0.16);
    border-radius: 18px;
    padding: 26px 28px;
}

.tsa-home .tsa-quote p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(244, 239, 231, 0.92);
}

.tsa-home .tsa-quote cite {
    font-style: normal;
    font-family: var(--tsa-head-font);
    font-size: 15px;
    color: var(--tsa-gold);
}

/* ------------------------------------------------------------- Packages */

.tsa-home .tsa-packages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tsa-home .tsa-package {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tsa-home .tsa-package img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background: var(--tsa-cream-2);
}

.tsa-home .tsa-package h3 {
    font-size: 21px;
    margin: 8px 0 0;
    color: var(--tsa-teal);
}

.tsa-home .tsa-package p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--tsa-body-color);
    flex: 1;
}

/* -------------------------------------------------------------- Stories */

.tsa-home .tsa-stories {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.tsa-home .tsa-story-feature {
    display: block;
    color: var(--tsa-ink);
}

.tsa-home .tsa-story-feature img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin-bottom: 20px;
}

.tsa-home .tsa-story-feature h3 {
    font-size: clamp(24px, 2.4vw, 30px);
    margin: 0 0 10px;
    color: var(--tsa-teal);
    line-height: 1.1;
}

.tsa-home .tsa-story-feature p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--tsa-body-color);
}

.tsa-home .tsa-story-list {
    display: flex;
    flex-direction: column;
}

.tsa-home .tsa-story-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--tsa-line);
    color: var(--tsa-ink);
}

.tsa-home .tsa-story-row:last-of-type {
    border-bottom: none;
}

.tsa-home .tsa-story-row img {
    width: 120px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.tsa-home .tsa-story-row h4 {
    font-size: 18px;
    margin: 0 0 6px;
    color: var(--tsa-teal);
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
}

.tsa-home .tsa-story-row__excerpt {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--tsa-body-color);
}

.tsa-home .tsa-story-list .tsa-link-underline {
    margin-top: 20px;
    font-size: 15px;
    align-self: flex-start;
}

/* ----------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
    .tsa-home .tsa-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .tsa-home .tsa-packages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .tsa-home .tsa-who,
    .tsa-home .tsa-quiz__inner,
    .tsa-home .tsa-testimonials__grid,
    .tsa-home .tsa-stories,
    .tsa-home .tsa-lastspot-card {
        grid-template-columns: 1fr;
    }

    .tsa-home .tsa-quiz .tsa-btn--amber {
        justify-self: start;
    }

    .tsa-home .tsa-who__figure {
        order: -1;
    }

    .tsa-home .tsa-who__badge {
        left: 16px;
    }

    .tsa-home .tsa-lastspot-card__media {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .tsa-home .tsa-hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    .tsa-home .tsa-hero__content {
        padding-top: calc(var(--wp--custom--header-height, 83px) + 56px);
        padding-bottom: 64px;
    }

    .tsa-home .tsa-hero__lede {
        font-size: 17px;
    }

    .tsa-home .tsa-hero__actions .tsa-btn {
        width: 100%;
    }

    .tsa-home .tsa-cards,
    .tsa-home .tsa-packages {
        grid-template-columns: 1fr;
    }

    .tsa-home .tsa-story-row {
        grid-template-columns: 96px 1fr;
    }

    .tsa-home .tsa-story-row img {
        width: 96px;
    }
}
