/* =========================================================
   Hopnest Home Page
   Premium showcase styling
   Scope: Homepage sections only
========================================================= */

:root {
    --home-orange: #ff5527;
    --home-orange-dark: #f04418;
    --home-green: #006a4e;
    --home-green-dark: #064536;
    --home-ink: #17211d;
    --home-muted: #66746f;
    --home-soft: #fbf7f2;
    --home-soft-2: #f7f3ed;
    --home-border: rgba(31, 41, 51, 0.08);
    --home-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    --home-shadow-hover: 0 30px 80px rgba(15, 23, 42, 0.14);
    --home-radius: 26px;
    --home-header-height: 76px;
}

/* =========================================================
   Hero
========================================================= */

.homepage-hero {
    position: relative;
    min-height: calc(100svh - var(--home-header-height));
    height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 96px 0 84px;
    background-image:
        linear-gradient(
            180deg,
            rgba(9, 18, 15, 0.28) 0%,
            rgba(9, 18, 15, 0.44) 44%,
            rgba(9, 18, 15, 0.84) 100%
        ),
        var(--hero-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    isolation: isolate;
}

/* Prevent old global hero fade from creating white band */
.homepage-hero::after {
    display: none !important;
    content: none !important;
}

.homepage-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
}

.homepage-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.homepage-hero h1 {
    max-width: 840px;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(3.4rem, 6vw, 6.2rem);
    line-height: 0.92;
    letter-spacing: -0.075em;
    font-weight: 950;
    text-wrap: balance;
    text-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.homepage-hero h1 + p {
    max-width: 720px;
    margin: 24px auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.98rem, 1.25vw, 1.18rem);
    line-height: 1.65;
    font-weight: 650;
    text-wrap: balance;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
}

.homepage-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.homepage-hero .btn {
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 850;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.homepage-hero .btn:hover {
    transform: translateY(-1px);
}

.homepage-hero .btn-primary {
    background: var(--home-orange) !important;
    border-color: var(--home-orange) !important;
    color: #ffffff !important;
}

.homepage-hero .btn-primary:hover {
    background: var(--home-orange-dark) !important;
    border-color: var(--home-orange-dark) !important;
    box-shadow: 0 20px 48px rgba(255, 85, 39, 0.28);
}

.homepage-hero .btn-ghost {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.94);
    color: #1f2933;
    backdrop-filter: blur(14px);
}

.homepage-hero .btn-ghost:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.homepage-owner-link {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    line-height: 1.5;
    font-weight: 750;
    text-align: center;
}

.homepage-owner-link a {
    color: #ffffff;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.trust-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.trust-chips span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.8rem;
    font-weight: 850;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

/* =========================================================
   Shared Homepage Sections
========================================================= */

.homepage-products,
.homepage-direct,
.homepage-why {
    position: relative;
}

.homepage-products {
    padding-top: 96px;
    padding-bottom: 92px;
    background:
        radial-gradient(circle at top left, rgba(255, 85, 39, 0.07), transparent 34%),
        #ffffff;
}

.homepage-direct {
    padding-top: 92px;
    padding-bottom: 92px;
    background:
        radial-gradient(circle at top right, rgba(0, 106, 78, 0.08), transparent 34%),
        linear-gradient(180deg, var(--home-soft) 0%, var(--home-soft-2) 100%);
    border-top: 1px solid rgba(31, 41, 51, 0.06);
    border-bottom: 1px solid rgba(31, 41, 51, 0.06);
}

.homepage-why {
    padding-top: 92px;
    padding-bottom: 92px;
    background:
        radial-gradient(circle at top center, rgba(0, 106, 78, 0.06), transparent 38%),
        #ffffff;
}

.homepage-products .section-head,
.homepage-direct .section-head,
.homepage-why .section-head {
    max-width: 760px;
    margin-bottom: 38px;
}

.homepage-products .section-head .eyebrow,
.homepage-direct .section-head .eyebrow,
.homepage-why .section-head .eyebrow {
    color: var(--home-green);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.homepage-products .section-head h2,
.homepage-direct .section-head h2,
.homepage-why .section-head h2 {
    margin-top: 10px;
    color: var(--home-ink);
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.065em;
    font-weight: 950;
    text-wrap: balance;
}

.homepage-products .section-head p,
.homepage-direct .section-head p,
.homepage-why .section-head p {
    max-width: 680px;
    margin-top: 18px;
    color: var(--home-muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

/* =========================================================
   Kerala Discovery Cards
========================================================= */

.homepage-products .destination-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.discovery-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: #ffffff;
    box-shadow: var(--home-shadow);
    text-decoration: none;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

a.discovery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 85, 39, 0.24);
    box-shadow: var(--home-shadow-hover);
}

.discovery-card .destination-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.discovery-card .destination-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.24));
    pointer-events: none;
}

.discovery-card .destination-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 300ms ease;
}

a.discovery-card:hover .destination-media img {
    transform: scale(1.045);
}

.discovery-card-body {
    position: relative;
    padding: 24px 22px 28px;
}

.discovery-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: -48px 0 18px;
    border: 6px solid #ffffff;
    border-radius: 999px;
    background: #fff3ee;
    color: var(--home-orange);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    font-size: 1rem;
}

.discovery-card-body .eyebrow {
    margin: 0 0 10px;
    color: var(--home-orange);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.discovery-card h3 {
    margin: 0;
    color: var(--home-ink);
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 950;
}

.discovery-card p {
    margin-top: 10px;
    color: var(--home-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.discovery-card.is-disabled {
    opacity: 0.8;
    background: #f6f8f6;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
    cursor: default;
}

.discovery-card.is-disabled .destination-media img {
    filter: grayscale(18%) saturate(80%);
}

.discovery-card.is-disabled .discovery-icon {
    background: #edf5f1;
    color: var(--home-green);
}

.discovery-card.is-disabled .eyebrow {
    color: var(--home-green);
}

/* =========================================================
   Hopnest Direct Feature Cards
========================================================= */

.homepage-direct .benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.homepage-direct .benefit {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-height: 132px;
    padding: 26px 28px;
    border: 1px solid var(--home-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(12px);
}

.homepage-direct .benefit::before {
    display: none;
}

.direct-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff1eb;
    color: var(--home-orange);
    font-size: 1.05rem;
    line-height: 1;
}

.direct-icon i {
    display: block;
    line-height: 1;
}

.homepage-direct .benefit:nth-child(even) .direct-icon {
    background: #edf6f2;
    color: var(--home-green);
}

.homepage-direct .benefit strong {
    display: block;
    margin-bottom: 7px;
    color: var(--home-ink);
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.homepage-direct .benefit > div > span {
    display: block;
    max-width: 440px;
    color: #61716b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Optional: if old button wrapper exists */
.homepage-section-action {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* =========================================================
   Why Hopnest Cards
========================================================= */

.homepage-why .section-head {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.homepage-why .section-head p {
    margin-left: auto;
    margin-right: auto;
}

.homepage-why .destination-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.why-card {
    min-height: 250px;
    padding: 30px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: #ffffff;
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.07);
}

.why-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 999px;
    background: #edf6f2;
    color: var(--home-green);
    font-size: 1.25rem;
}

.why-card .eyebrow {
    margin: 0 0 12px;
    color: var(--home-green);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.why-card h3 {
    margin: 0;
    color: var(--home-ink);
    font-size: 1.28rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
    font-weight: 950;
}

.why-card p {
    margin-top: 12px;
    color: var(--home-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================================
   Homepage Button Refinement
========================================================= */

.homepage-products .btn,
.homepage-direct .btn,
.homepage-why .btn {
    border-radius: 999px;
    font-weight: 850;
}

.homepage-products .btn-primary,
.homepage-direct .btn-primary {
    background: var(--home-orange);
    border-color: var(--home-orange);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(255, 85, 39, 0.22);
}

.homepage-products .btn-primary:hover,
.homepage-direct .btn-primary:hover {
    background: var(--home-orange-dark);
    border-color: var(--home-orange-dark);
    transform: translateY(-1px);
}

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

@media (max-width: 1024px) {
    :root {
        --home-header-height: 70px;
    }

    .homepage-hero {
        min-height: calc(100svh - var(--home-header-height));
        background-position: center center;
    }

    .homepage-products .destination-grid,
    .homepage-why .destination-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage-direct .benefit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --home-header-height: 64px;
    }

    .homepage-hero {
        min-height: calc(100svh - var(--home-header-height));
        align-items: center;
        padding: 88px 0 64px;
        background-image:
            linear-gradient(
                180deg,
                rgba(9, 18, 15, 0.2) 0%,
                rgba(9, 18, 15, 0.62) 48%,
                rgba(9, 18, 15, 0.9) 100%
            ),
            var(--hero-image);
        background-position: center center;
    }

    .homepage-hero .hero-content {
        text-align: left;
    }

    .homepage-hero .eyebrow {
        justify-content: flex-start;
    }

    .homepage-hero h1,
    .homepage-hero h1 + p {
        margin-left: 0;
        margin-right: 0;
    }

    .homepage-hero h1 {
        font-size: clamp(2.65rem, 13vw, 4.3rem);
        line-height: 0.98;
        letter-spacing: -0.06em;
    }

    .homepage-hero h1 + p {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .homepage-hero-actions,
    .trust-chips {
        justify-content: flex-start;
    }

    .homepage-hero .trust-chips {
        width: 100%;
        margin-left: 0;
        margin-right: auto;
    }

    .homepage-owner-link {
        text-align: left;
        font-size: 0.92rem;
    }

    .homepage-hero .btn {
        width: auto;
        min-width: 148px;
    }

    .trust-chips {
        gap: 8px;
    }

    .trust-chips span {
        min-height: 38px;
        padding: 0 14px;
        font-size: 0.76rem;
    }

    .homepage-products,
    .homepage-direct,
    .homepage-why {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .homepage-products .section-head,
    .homepage-direct .section-head,
    .homepage-why .section-head {
        margin-bottom: 28px;
    }

    .homepage-products .section-head h2,
    .homepage-direct .section-head h2,
    .homepage-why .section-head h2 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.05;
        letter-spacing: -0.055em;
    }

    .homepage-products .section-head p,
    .homepage-direct .section-head p,
    .homepage-why .section-head p {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .homepage-products .destination-grid,
    .homepage-why .destination-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .discovery-card {
        border-radius: 22px;
    }

    .discovery-card .destination-media {
        height: 210px;
    }

    .discovery-card-body {
        padding: 22px 22px 26px;
    }

    .homepage-direct .benefit {
        min-height: auto;
        gap: 14px;
        padding: 22px;
        border-radius: 20px;
    }

    .direct-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .why-card {
        min-height: auto;
        padding: 26px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .homepage-hero .btn {
        width: 100%;
    }

    .homepage-hero-actions {
        width: 100%;
    }

    .homepage-hero h1 {
        font-size: 2.55rem;
    }

    .discovery-card .destination-media {
        height: 190px;
    }
}
/* =========================================================
   Fix Kerala Discovery Cards
   Add at bottom of home.css
========================================================= */

.homepage-products .destination-grid {
    align-items: stretch;
}

.homepage-products .discovery-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    min-height: 520px;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 28px !important;
    background: #ffffff !important;
    border: 1px solid rgba(31, 41, 51, 0.08) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09) !important;
    text-decoration: none !important;
}

.homepage-products .discovery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.14) !important;
}

.homepage-products .discovery-card .destination-media {
    width: 100%;
    height: 245px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #eef2ef;
}

.homepage-products .discovery-card .destination-media img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.homepage-products .discovery-card-body {
    position: relative;
    flex: 1;
    padding: 0 28px 34px !important;
    background: #ffffff;
}

.homepage-products .discovery-icon {
    width: 54px;
    height: 54px;
    margin: -27px 0 22px !important;
    border: 7px solid #ffffff;
    border-radius: 999px;
    background: #fff3ee;
    color: #ff5527;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.homepage-products .discovery-card-body .eyebrow {
    margin: 0 0 12px !important;
    color: #ff5527;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.homepage-products .discovery-card h3 {
    margin: 0 !important;
    color: #17211d !important;
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.homepage-products .discovery-card p {
    margin-top: 14px !important;
    color: #52615c !important;
    font-size: 1rem;
    line-height: 1.7;
}

/* Disabled coming-soon card */
.homepage-products .discovery-card.is-disabled {
    background: #f5f8f6 !important;
    opacity: 1 !important;
    box-shadow: 0 18px 56px rgba(15, 23, 42, 0.06) !important;
}

.homepage-products .discovery-card.is-disabled .destination-media img {
    filter: grayscale(18%) saturate(78%) brightness(0.96);
}

.homepage-products .discovery-card.is-disabled .discovery-card-body {
    background: linear-gradient(180deg, #f8faf8 0%, #f3f7f4 100%);
}

.homepage-products .discovery-card.is-disabled .discovery-icon {
    background: #edf6f2;
    color: #006a4e;
}

.homepage-products .discovery-card.is-disabled .eyebrow {
    color: #006a4e;
}

.homepage-products .discovery-card.is-disabled h3,
.homepage-products .discovery-card.is-disabled p {
    color: rgba(23, 33, 29, 0.72) !important;
}

/* Mobile */
@media (max-width: 760px) {
    .homepage-products .discovery-card {
        min-height: auto;
        border-radius: 24px !important;
    }

    .homepage-products .discovery-card .destination-media {
        height: 220px !important;
    }

    .homepage-products .discovery-card-body {
        padding: 0 24px 30px !important;
    }
}
