/* ==========================================================================
   Home.css
   Styles ONLY for the custom homepage hero (home.hbs).
   Scoped entirely under .home-hero so nothing here can leak into or
   override the existing theme styles (screen.css, blocks.css).
   Loaded only on the homepage via {{#is "home"}} in default.hbs.
   ========================================================================== */

.home-hero {
    padding-top: 24px;
}

.home-hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 420px;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    border-radius: 28px;
    background-color: #2b4a52;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        60% 55% at center,
        rgba(0, 0, 0, 0.32) 0%,
        rgba(0, 0, 0, 0.12) 55%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 1;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 640px;
    padding: 32px 24px;
    text-align: center;
    color: #fff;
}

.home-hero-greeting {
    font-family: "Poppins", sans-serif;
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.home-hero-title {
    margin: 2px 0 0;
    font-family: "Poppins", sans-serif;
    font-size: 5.0rem;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.25);
}

.home-hero-subtitle {
    margin: 17px 0 0;
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.home-hero-form {
    width: 100%;
    max-width: 460px;
    margin-top: 26px;
}

/* Generic selectors (not tied to a specific Ghost markup version) so this
   keeps working even if Ghost's subscribe_form internals change slightly */
.home-hero-form form {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    background: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.home-hero-form input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.5rem;
    color: #111;
    padding: 10px 0;
}

.home-hero-form input::placeholder {
    color: #8a8a8a;
}

.home-hero-form button {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    background: #e6231a;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    padding: 12px 24px;
    cursor: pointer;
    white-space: nowrap;
}

.home-hero-form button:hover {
    background: #cc1e16;
}

.home-hero-form .loading-spinner {
    display: none;
}

@media (max-width: 700px) {
    .home-hero-media {
        border-radius: 20px;
        min-height: 340px;
        aspect-ratio: auto;
    }

    .home-hero-greeting {
        font-size: 2rem;
    }

    .home-hero-title {
        font-size: 3rem;
    }

    .home-hero-subtitle {
        font-size: 1.3rem;
    }

    .home-hero-form form {
        flex-direction: column;
        border-radius: 20px;
        padding: 12px;
        gap: 10px;
    }

    .home-hero-form input {
        width: 100%;
        text-align: center;
    }

    .home-hero-form button {
        width: 100%;
    }
}

.home-section-heading {
    padding-top: 60px;
    padding-bottom: 0px;
    margin: 10px 0px 0px 0px;
}

.home-section-title {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: inherit;
}

.home-section-heading-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.home-section-line {
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

html.dark-mode .home-section-line {
    background: rgba(255, 255, 255, 0.2);
}

/* Editor's Picks */
.editors-picks {
    padding-top: 24px;
    padding-bottom: 110px;
}

.editors-picks-head {
    margin-bottom: 32px;
}

.editors-picks-title {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.editors-picks-subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: 0.7;
    max-width: 560px;
}

.editors-picks-banner {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.editors-picks-banner-image-wrap {
    border-radius: 16px;
    overflow: hidden;
}

.editors-picks-banner-image {
    width: 100%;
    aspect-ratio: 16 / 8;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease;
}

.editors-picks-banner:hover .editors-picks-banner-image {
    transform: scale(1.03);
}

.editors-picks-overlay-card {
    position: absolute;
    left: 32px;
    bottom: -64px;
    max-width: 520px;
    width: calc(100% - 64px);
    background: #ffffff;
    border-radius: 16px;
    padding: 44px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.editors-picks-tag {
    display: block !important;
    width: fit-content;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.55;
    margin: 0 !important;
}

.editors-picks-headline {
    margin: 0 !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 2.1rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.editors-picks-excerpt {
    margin: 0 !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    opacity: 0.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editors-picks-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    background: #0d2b2e;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.editors-picks-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
}

@media (max-width: 800px) {
    .editors-picks-banner-image {
        aspect-ratio: 4 / 3;
    }
    .editors-picks-overlay-card {
        position: static;
        max-width: none;
        width: auto;
        margin-top: -40px;
        margin-left: 16px;
        margin-right: 16px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    }
    .editors-picks {
        padding-bottom: 40px;
    }
}

html.dark-mode .editors-picks-overlay-card {
    background: #14201f;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Explore by Continent: horizontal scroll of portrait cards
   (Where To Next? style). Description and the "Explore" badge
   stay visible under each card. Scoped to .continent-explorer so
   it does not affect post-card styling anywhere else on the site
   (Latest Stories, tag pages, index, etc.). */
.continent-explorer {
    padding-top: 24px;
    padding-bottom: 48px;
}

.continent-explorer .post-feed {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    grid-template-columns: unset;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.continent-explorer .post-card {
    flex: 0 0 clamp(240px, 26vw, 320px);
    scroll-snap-align: start;
}

.continent-explorer .post-card-image-link {
    aspect-ratio: 3 / 4 !important;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.continent-explorer .post-card-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

/* Experiences: news-style grid with date + title + "More" link,
   no tags/excerpt. Scoped to .experiences-explorer so it does not
   affect post-card styling anywhere else on the site. */
.experiences-explorer {
    padding-top: 24px;
    padding-bottom: 48px;
}

.experiences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
}

@media (max-width: 900px) {
    .experiences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .experiences-grid {
        grid-template-columns: 1fr;
    }
}

.experience-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.experience-card-image {
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.experience-card-date {
    display: block;
    font-size: 0.95rem;
    text-transform: lowercase;
    opacity: 0.55;
    margin-bottom: 14px;
}

.experience-card-title {
    margin: 0 0 18px 0;
    font-family: "Poppins", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
}

.experience-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.05rem;
}

.experience-card-more-icon {
    transition: transform 0.2s ease;
}

.experience-card:hover .experience-card-more-icon {
    transform: translateX(3px);
}

/* Meet the Agency (homepage only, shown below the post feed's Load More) */
.home-meet-agency {
    padding-top: 137px;
    padding-bottom: 0px;
}

.home-meet-agency-head {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.home-meet-agency-title {
    margin: 5px;
    margin-bottom: 20px;
    font-family: "Poppins", sans-serif;
    font-size: 3.4rem;
    font-weight: 500;
    color: inherit;
}

.home-meet-agency-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 0px 0px 19px 0px;
}

.home-meet-agency-member {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 115px;
    text-align: center;
}

.home-meet-agency-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    border-radius: 999px;
    border: 2px solid var(--ghost-accent-color);
    overflow: hidden;
    background: var(--color-border, #e5e7eb);
}

.home-meet-agency-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-meet-agency-avatar-fallback {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary-text);
}

.home-meet-agency-name {
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: inherit;
}

@media (max-width: 700px) {
    .home-meet-agency-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ================================================================
   TESTIMONIALS ("What Our Clients Say") - added below Meet the Agency
   ================================================================ */
.home-testimonials-2 {
    padding: 24px 0 48px;
}

.home-testi-title {
    display: flex;
    margin: 77px 14px 57px;
    font-family: "Poppins", sans-serif;
    font-size: 5.2rem;
    font-weight: 700;
    color: inherit;
    justify-content: center;
}

.home-testi-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.home-testi-card {
    flex:0 0 calc(0.3% - 0px);
    min-width: 278px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    padding: 26px 24px;
    background: #fff;
}

html.dark-mode .home-testi-card {
    background: #1c1e21;
    border-color: rgba(255, 255, 255, .12);
}

.home-testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--color-border, #d1d5db);
    margin-bottom: 16px;
}

.home-testi-quote {
    margin: 0 0 22px;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--color-secondary-text);
}

.home-testi-footer {
    margin-top: auto;
}

.home-testi-name {
    font-family: "Courier New", monospace;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .03em;
    color: inherit;
}

.home-testi-role {
    font-size: 1.2rem;
    color: var(--color-secondary-text);
}

@media (max-width: 700px) {
    .home-testi-card {
        flex: 0 0 85%;
    }
}